CropImagePage.ofPlatformFile constructor

CropImagePage.ofPlatformFile({
  1. Key? key,
  2. required PFile source,
  3. Uint8List? bytes,
  4. double cropAspectRatio = 1.0,
})

Implementation

CropImagePage.ofPlatformFile({
  Key? key,
  required PFile source,
  Uint8List? bytes,
  this.cropAspectRatio = 1.0,
  // ignore: deprecated_member_use
})  : source = bytes ?? source.bytes ?? illegalState("Need loaded bytes"),
      sourceName = source.name!,
      super(key: key);