getting there

This commit is contained in:
Fabian Freund committed 2024-10-15 11:13:32 +02:00
1 parent 10d6a3de1d
commit c4d93e8fe7
56 files changed
+1830 -762

No files matched your search

@@ -0,0 +1,21 @@
import 'package:fast_equatable/fast_equatable.dart';
class EquatableCollection<T> with FastEquatable {
final T collection;
final bool immutable;
EquatableCollection(this.collection, {required this.immutable})
: assert(
collection is Map || collection is Iterable,
'Collection type not supported',
);
@override
bool get cacheHash => immutable;
@override
List<Object?> get hashParameters => [
collection,
immutable,
];
}