Crop constructor

const Crop({
  1. Key? key,
  2. required Widget child,
  3. required CropController controller,
  4. EdgeInsets padding = const EdgeInsets.all(8),
  5. Color dimColor = const Color.fromRGBO(0, 0, 0, 0.8),
  6. Color backgroundColor = Colors.black,
  7. Widget? background,
  8. Widget? foreground,
  9. Widget? helper,
  10. Widget? overlay,
  11. bool interactive = true,
  12. BoxShape shape = BoxShape.rectangle,
  13. ValueChanged<MatrixDecomposition>? onChanged,
  14. Duration animationDuration = const Duration(milliseconds: 200),
  15. Radius? radius,
})

The constructor.

Implementation

const Crop({
  Key? key,
  required this.child,
  required this.controller,
  this.padding = const EdgeInsets.all(8),
  this.dimColor = const Color.fromRGBO(0, 0, 0, 0.8),
  this.backgroundColor = Colors.black,
  this.background,
  this.foreground,
  this.helper,
  this.overlay,
  this.interactive = true,
  this.shape = BoxShape.rectangle,
  this.onChanged,
  this.animationDuration = const Duration(milliseconds: 200),
  this.radius,
}) : super(key: key);