ImageArea.square constructor

ImageArea.square({
  1. required ImageController controller,
  2. required double dimension,
  3. String? onLoadingImage,
  4. BoxDecoration? decoration,
  5. EdgeInsetsGeometry? margin,
  6. EdgeInsetsGeometry? padding,
  7. Widget? emptyChild,
  8. Widget? onErrorChild,
  9. Widget? onDragChild,
  10. Widget? onLoadingChild,
  11. BoxFit? fit,
  12. bool readOnly = false,
  13. Key? key,
})

Creates a square ImageArea with equal width and height dimension.

Implementation

ImageArea.square({
  required this.controller,
  required final double dimension,
  this.onLoadingImage,
  this.decoration,
  this.margin,
  this.padding,
  this.emptyChild,
  this.onErrorChild,
  this.onDragChild,
  this.onLoadingChild,
  this.fit,
  this.readOnly = false,
  super.key
}) :
width   = dimension,
height  = dimension;