ImageArea.expand constructor

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

Creates an ImageArea that expands to fill available space.

Implementation

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