FlintImage constructor

FlintImage({
  1. required String src,
  2. String? alt,
  3. double? width,
  4. double? height,
  5. EdgeInsets? margin,
  6. EdgeInsets? padding,
  7. String? alignment,
  8. BoxBorder? border,
  9. BorderRadius? borderRadius,
  10. BoxShadow? shadow,
  11. ImageStyle style = const ImageStyle(),
  12. String? caption,
  13. bool lazyLoading = false,
  14. String? linkUrl,
})

Creates a FlintImage widget.

Most parameters are optional except src.

Implementation

FlintImage({
  required this.src,
  this.alt,
  this.width,
  this.height,
  this.margin,
  this.padding,
  this.alignment,
  this.border,
  this.borderRadius,
  this.shadow,
  this.style = const ImageStyle(),
  this.caption,
  this.lazyLoading = false,
  this.linkUrl,
});