ImgCrop.asset constructor

ImgCrop.asset(
  1. String assetName, {
  2. Key? key,
  3. required AssetBundle bundle,
  4. String? package,
  5. double chipRadius = 150,
  6. double maximumScale = 2.0,
  7. ImageErrorListener? onImageError,
  8. Color? stokenColor = Colors.white,
  9. double? stokenWidth = 2,
  10. ChipShape chipShape = ChipShape.circle,
})

Implementation

ImgCrop.asset(
  String assetName, {
  Key? key,
  required AssetBundle bundle,
  String? package,
  this.chipRadius = 150,
  this.maximumScale = 2.0,
  this.onImageError,
  this.stokenColor = Colors.white,
  this.stokenWidth = 2,
  this.chipShape = ChipShape.circle,
})  : image = AssetImage(assetName, bundle: bundle, package: package),
      super(key: key);