2022-04-24 02:08:45 +00:00
|
|
|
import 'package:collection/collection.dart';
|
2024-05-01 02:36:40 +00:00
|
|
|
import 'package:immich_mobile/entities/asset.entity.dart';
|
2022-04-24 02:08:45 +00:00
|
|
|
|
|
|
|
class AssetSelectionPageResult {
|
2023-05-17 17:36:02 +00:00
|
|
|
final Set<Asset> selectedAssets;
|
2022-04-24 02:08:45 +00:00
|
|
|
|
|
|
|
AssetSelectionPageResult({
|
2023-05-17 17:36:02 +00:00
|
|
|
required this.selectedAssets,
|
2022-04-24 02:08:45 +00:00
|
|
|
});
|
|
|
|
@override
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
if (identical(this, other)) return true;
|
|
|
|
final setEquals = const DeepCollectionEquality().equals;
|
|
|
|
|
|
|
|
return other is AssetSelectionPageResult &&
|
2023-05-17 17:36:02 +00:00
|
|
|
setEquals(other.selectedAssets, selectedAssets);
|
2022-04-24 02:08:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
2023-05-17 17:36:02 +00:00
|
|
|
int get hashCode => selectedAssets.hashCode;
|
2022-04-24 02:08:45 +00:00
|
|
|
}
|