ImageArea.square constructor
ImageArea.square({
- ImageController? controller,
- required double dimension,
- String? onLoadingImage,
- BoxDecoration? decoration,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- Widget? emptyChild,
- Widget? onErrorChild,
- Widget? onDragChild,
- Widget? onLoadingChild,
- BoxFit? fit,
- 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;