Crop.asset constructor

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

Implementation

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