2022-11-09 02:23:56 +00:00
|
|
|
class ImageEntry {
|
2022-12-14 02:06:10 +00:00
|
|
|
final String id;
|
|
|
|
final String album;
|
|
|
|
final String filename;
|
|
|
|
final String description;
|
|
|
|
final String thumbnailUrl;
|
|
|
|
final DateTime created;
|
|
|
|
final int height;
|
|
|
|
final int width;
|
2022-11-09 02:23:56 +00:00
|
|
|
|
2022-12-14 02:06:10 +00:00
|
|
|
ImageEntry({
|
|
|
|
required this.id,
|
|
|
|
required this.album,
|
|
|
|
required this.filename,
|
|
|
|
required this.description,
|
|
|
|
required this.thumbnailUrl,
|
|
|
|
required this.created,
|
|
|
|
required this.height,
|
|
|
|
required this.width,
|
|
|
|
});
|
2022-11-09 02:23:56 +00:00
|
|
|
|
2022-12-14 02:06:10 +00:00
|
|
|
@override
|
|
|
|
bool operator ==(Object other) =>
|
|
|
|
identical(this, other) ||
|
|
|
|
other is ImageEntry && runtimeType == other.runtimeType && id == other.id;
|
2022-11-09 02:23:56 +00:00
|
|
|
|
2022-12-14 02:06:10 +00:00
|
|
|
@override
|
|
|
|
int get hashCode => id.hashCode;
|
2022-11-09 02:23:56 +00:00
|
|
|
}
|