Crop constructor

const Crop({
  1. Key? key,
  2. required Widget child,
  3. required Size size,
  4. double? aspectRatio,
  5. double maximumScale = 2.0,
  6. bool alwaysShowGrid = false,
  7. bool disableResize = false,
  8. Color backgroundColor = _kCropBackgroundColor,
  9. CropInternal? initialParam,
})

Implementation

const Crop({
  Key? key,
  required this.child,
  required this.size,
  this.aspectRatio,
  this.maximumScale = 2.0,
  this.alwaysShowGrid = false,
  this.disableResize = false,
  this.backgroundColor = _kCropBackgroundColor,
  this.initialParam,
})  : assert(size != Size.zero, 'Size cannot be zero.'),
      assert(size != Size.infinite, 'Size cannot be infinite.'),
      super(key: key);