ImageMetadata constructor Null safety

ImageMetadata(
  1. {String? alt,
  2. required Iterable<ImageSource> sources,
  3. String? title}
)

Creates an image.

Implementation

ImageMetadata({this.alt, required this.sources, this.title}) {
  for (final source in sources) {
    _imageMetas[source] = this;
  }
}