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