@@ -35,7 +35,7 @@ class MyWidgetWithMixinState extends State<MyWidgetWithMixin> with PerAccountSto
35
35
@override
36
36
Widget build (BuildContext context) {
37
37
final brightness = Theme .of (context).brightness;
38
- final accountId = PerAccountStoreWidget .of (context).account.id ;
38
+ final accountId = PerAccountStoreWidget .of (context).accountId ;
39
39
return Text ('brightness: $brightness ; accountId: $accountId ' );
40
40
}
41
41
}
@@ -87,7 +87,7 @@ void main() {
87
87
child: Builder (
88
88
builder: (context) {
89
89
final store = PerAccountStoreWidget .of (context);
90
- return Text ('found store, account: ${store .account . id }' );
90
+ return Text ('found store, account: ${store .accountId }' );
91
91
})))));
92
92
await tester.pump ();
93
93
await tester.pump ();
@@ -109,7 +109,7 @@ void main() {
109
109
child: Builder (
110
110
builder: (context) {
111
111
final store = PerAccountStoreWidget .of (context);
112
- return Text ('found store, account: ${store .account . id }' );
112
+ return Text ('found store, account: ${store .accountId }' );
113
113
})))));
114
114
115
115
// First, the global store has to load.
@@ -137,7 +137,7 @@ void main() {
137
137
child: Builder (
138
138
builder: (context) {
139
139
final store = PerAccountStoreWidget .of (context);
140
- return Text ('found store, account: ${store .account . id }' );
140
+ return Text ('found store, account: ${store .accountId }' );
141
141
})))));
142
142
143
143
// (... even one that really is separate, with its own fresh state node ...)
0 commit comments