@@ -14,6 +14,33 @@ enum Action {
14
14
actionNoOp
15
15
}
16
16
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
+
17
44
Future <void > delay (int millis) =>
18
45
Future .delayed (Duration (milliseconds: millis));
19
46
@@ -1404,30 +1431,3 @@ void main() {
1404
1431
});
1405
1432
});
1406
1433
}
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