aspectRatio property

double? get aspectRatio

Implementation

double? get aspectRatio => value.aspectRatio;
set aspectRatio (double? newAspectRatio)

Implementation

set aspectRatio(double? newAspectRatio) {
  if (newAspectRatio != null) {
    value = value.copyWith(
        aspectRatio: newAspectRatio,
        crop: _adjustRatio(value.crop, newAspectRatio));
  } else {
    value = value.copyWith(aspectRatio: newAspectRatio);
  }
  notifyListeners();
}