ImageInfo class

Image-specific metadata extracted from an asset file.

Constructors

ImageInfo({required int width, required int height, required String format, required bool hasAlpha, Map<String, dynamic>? metadata})
Creates an image info instance.
ImageInfo.fromJson(Map<String, dynamic> json)
factory

Properties

format String
Image format (e.g., "png", "jpeg", "webp").
final
hasAlpha bool
Whether the image has an alpha/transparency channel.
final
hashCode int
The hash code for this object.
no setterinherited
height int
Image height in pixels.
final
metadata Map<String, dynamic>?
Additional metadata (EXIF, etc.), if extracted.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
Image width in pixels.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited