Skip to content

Commit 4fa99a0

Browse files
committed
move _State class to top of file
1 parent 6b05875 commit 4fa99a0

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

test/store_test.dart

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,33 @@ enum Action {
1414
actionNoOp
1515
}
1616

17+
class _State {
18+
final bool isLoading;
19+
final String? term;
20+
final BuiltList<String> items;
21+
final double otherState;
22+
23+
_State(this.isLoading, this.term, this.items, this.otherState);
24+
25+
@override
26+
bool operator ==(Object other) =>
27+
identical(this, other) ||
28+
other is _State &&
29+
runtimeType == other.runtimeType &&
30+
isLoading == other.isLoading &&
31+
term == other.term &&
32+
items == other.items &&
33+
otherState == other.otherState;
34+
35+
@override
36+
int get hashCode =>
37+
isLoading.hashCode ^ term.hashCode ^ items.hashCode ^ otherState.hashCode;
38+
39+
@override
40+
String toString() =>
41+
'_State{isLoading: $isLoading, term: $term, items: $items, otherState: $otherState}';
42+
}
43+
1744
Future<void> delay(int millis) =>
1845
Future.delayed(Duration(milliseconds: millis));
1946

@@ -1404,30 +1431,3 @@ void main() {
14041431
});
14051432
});
14061433
}
1407-
1408-
class _State {
1409-
final bool isLoading;
1410-
final String? term;
1411-
final BuiltList<String> items;
1412-
final double otherState;
1413-
1414-
_State(this.isLoading, this.term, this.items, this.otherState);
1415-
1416-
@override
1417-
bool operator ==(Object other) =>
1418-
identical(this, other) ||
1419-
other is _State &&
1420-
runtimeType == other.runtimeType &&
1421-
isLoading == other.isLoading &&
1422-
term == other.term &&
1423-
items == other.items &&
1424-
otherState == other.otherState;
1425-
1426-
@override
1427-
int get hashCode =>
1428-
isLoading.hashCode ^ term.hashCode ^ items.hashCode ^ otherState.hashCode;
1429-
1430-
@override
1431-
String toString() =>
1432-
'_State{isLoading: $isLoading, term: $term, items: $items, otherState: $otherState}';
1433-
}

0 commit comments

Comments
 (0)