Skip to content

Commit aab0f17

Browse files
create SortingNotifierState
1 parent bfa4014 commit aab0f17

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)