Image constructor

Image({
  1. required String src,
  2. required String alt,
  3. int? width,
  4. int? height,
  5. Loading? loading,
  6. String? imageRoot,
  7. bool autoSize = true,
  8. String? id,
  9. Iterable<String>? classes,
  10. Iterable<String>? inlineStyles,
})

Implementation

Image({
  required this.src,
  required this.alt,
  this.width,
  this.height,
  this.loading,
  this.imageRoot,
  this.autoSize = true,
  super.id,
  super.classes,
  super.inlineStyles,
}) : super(children: []);