We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfa4014 commit aab0f17Copy full SHA for aab0f17
lib/features/sorting/view_model/sorting_state.dart
@@ -0,0 +1,18 @@
1
+part of 'sorting_notifier.dart';
2
+
3
+class SortingNotifierState {
4
+ final List<SortableItem> list;
5
+ final Map<int, Offset> positions;
6
7
+ SortingNotifierState({required this.list, this.positions = const {}});
8
9
+ SortingNotifierState copyWith({
10
+ List<SortableItem>? list,
11
+ Map<int, Offset>? positions,
12
+ }) {
13
+ return SortingNotifierState(
14
+ list: list ?? this.list,
15
+ positions: positions ?? this.positions,
16
+ );
17
+ }
18
+}
0 commit comments