ImageModel class

Model class representing an image file retrieved from the device.

Constructors

ImageModel({int? id, String? name, String? path, String? uri, int? size, int? dateAdded, int? dateModified, int? width, int? height, String? mimeType, String? fileExtension})
ImageModel.fromMap(Map<String, dynamic> map)
Creates an ImageModel from a map returned by the native platform.
factory

Properties

dateAdded → int
Date the image was added (milliseconds since epoch).
final
dateModified → int
Date the image was last modified (milliseconds since epoch).
final
fileExtension → String?
File extension (e.g., "jpg", "png").
final
hashCode → int
The hash code for this object.
no setterinherited
height → int
Height of the image in pixels.
final
id → int
Unique identifier for the image.
final
mimeType → String
MIME type of the image (e.g., "image/jpeg").
final
name → String
Name of the image file (e.g., "photo.jpg").
final
path → String?
File system path to the image (e.g., "/storage/emulated/0/Pictures/photo.jpg").
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int
Size of the image in bytes.
final
uri → String
Content URI for the image (e.g., "content://media/external/images/media/123").
final
width → int
Width of the image in pixels.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
Converts the ImageModel to a map for serialization.
toString() → String
A string representation of this object.
inherited

Operators

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