ImgCrop.file constructor

ImgCrop.file(
  1. File file, {
  2. Key? key,
  3. double scale = 1.0,
  4. double maximumScale = 2.0,
  5. ImageErrorListener? onImageError,
  6. double chipRadius = 150,
  7. Color? stokenColor = Colors.white,
  8. double? stokenWidth = 2,
  9. ChipShape chipShape = ChipShape.circle,
})

Implementation

ImgCrop.file(File file,
    {Key? key,
    double scale = 1.0,
    this.maximumScale = 2.0,
    this.onImageError,
    this.chipRadius = 150,
    this.stokenColor = Colors.white,
    this.stokenWidth = 2,
    this.chipShape = ChipShape.circle})
    : image = FileImage(file, scale: scale),
      super(key: key);