Image.asset constructor

Image.asset({
  1. required String path,
  2. Unit? width,
  3. Unit? height,
  4. String? alt,
  5. Map<String, String>? attributes,
})

Implementation

factory Image.asset({
  /// Image path stored in the web directory
  required String path,
  Unit? width,
  Unit? height,
  String? alt,
  Map<String, String>? attributes,
}) {
  return Image(src: path);
}