MImage constructor

const MImage(
  1. String? source, {
  2. Key? key,
  3. Color? color,
  4. BoxFit? fit,
  5. double? height,
  6. PlaceholderWidgetBuilder? placeholder,
  7. ProgressIndicatorBuilder? progressIndicatorBuilder,
  8. bool showIndicator = true,
  9. double? width,
  10. double? size,
  11. double? scale,
  12. String? package,
  13. AssetBundle? bundle,
})

Implementation

const MImage(
  this.source, {
  super.key,
  this.color,
  this.fit,
  double? height,
  this.placeholder,
  this.progressIndicatorBuilder,
  this.showIndicator = true,
  double? width,
  double? size,
  this.scale,
  this.package,
  this.bundle,
})  : assert(placeholder == null || progressIndicatorBuilder == null),
      width = width ?? size,
      height = height ?? size;