ImageCropper constructor

const ImageCropper({
  1. Key? key,
  2. required Uint8List image,
  3. bool reversible = true,
  4. List<AspectRatio> availableRatios = const [o.AspectRatio(title: 'Freeform'), o.AspectRatio(title: '1:1', ratio: 1), o.AspectRatio(title: '4:3', ratio: 4 / 3), o.AspectRatio(title: '5:4', ratio: 5 / 4), o.AspectRatio(title: '7:5', ratio: 7 / 5), o.AspectRatio(title: '16:9', ratio: 16 / 9)],
})

Implementation

const ImageCropper({
  super.key,
  required this.image,
  this.reversible = true,
  this.availableRatios = const [
    o.AspectRatio(title: 'Freeform'),
    o.AspectRatio(title: '1:1', ratio: 1),
    o.AspectRatio(title: '4:3', ratio: 4 / 3),
    o.AspectRatio(title: '5:4', ratio: 5 / 4),
    o.AspectRatio(title: '7:5', ratio: 7 / 5),
    o.AspectRatio(title: '16:9', ratio: 16 / 9),
  ],
});