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