Files
immich/mobile-v2/lib/domain/models/album.model.dart
2025-02-26 08:58:19 +05:30

32 lines
596 B
Dart

import 'package:flutter/foundation.dart';
@immutable
class LocalAlbum {
final int id;
final String localId;
final String name;
final DateTime modifiedTime;
const LocalAlbum({
required this.id,
required this.localId,
required this.name,
required this.modifiedTime,
});
@override
bool operator ==(covariant LocalAlbum other) {
if (identical(this, other)) return true;
return other.hashCode == hashCode;
}
@override
int get hashCode {
return id.hashCode ^
localId.hashCode ^
name.hashCode ^
modifiedTime.hashCode;
}
}