Crop.asset constructor

Crop.asset(
  1. String assetName, {
  2. Key? key,
  3. AssetBundle? bundle,
  4. String? package,
  5. double? minimumScale,
  6. bool startCollapsed = false,
  7. double? aspectRatio,
  8. double maximumScale = 2.0,
  9. bool alwaysShowGrid = false,
  10. ImageErrorListener? onImageError,
})

Implementation

Crop.asset(String assetName, {
  Key? key,
  AssetBundle? bundle,
  String? package,
  double? minimumScale,
  this.startCollapsed = false,
  this.aspectRatio,
  this.maximumScale = 2.0,
  this.alwaysShowGrid = false,
  this.onImageError,
})
    : this.minimumScale = minimumScale,
      image = AssetImage(assetName, bundle: bundle, package: package),
      super(key: key);