ImageModel class Null safety

Represents an Image, that would be displayed in the gallery.

Constructors

ImageModel({required Uri uri, required int imageIndex, required String imageName, required bool isFavourite})
const
ImageModel.fromDto({required ImageModelDTO imageModelDto, required bool isFavourite})
factory

Properties

hashCode int
The hash code for this object.
read-only, inherited
imageIndex int
A unique identifier that can be used for indexing the image.
final
imageName String
Given name of the image.
final
isFavourite bool
Whether the image was 'Starred' ot not.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
uri Uri
An image's target Uri.
final

Methods

copyWith({Uri? uri, int? imageIndex, String? imageName, bool? isFavourite}) ImageModel
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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