ImageArea.square constructor

ImageArea.square({
  1. 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. Key? key,
})

Constructs a square ImageArea with equal width and height dimension.

Implementation

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