File tree 4 files changed +25
-23
lines changed
4 files changed +25
-23
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ packages:
7
7
name: async
8
8
url: "https://pub.dartlang.org"
9
9
source: hosted
10
- version: "2.6.1 "
10
+ version: "2.8.2 "
11
11
boolean_selector:
12
12
dependency: transitive
13
13
description:
@@ -21,14 +21,14 @@ packages:
21
21
name: characters
22
22
url: "https://pub.dartlang.org"
23
23
source: hosted
24
- version: "1.1 .0"
24
+ version: "1.2 .0"
25
25
charcode:
26
26
dependency: transitive
27
27
description:
28
28
name: charcode
29
29
url: "https://pub.dartlang.org"
30
30
source: hosted
31
- version: "1.2.0 "
31
+ version: "1.3.1 "
32
32
clock:
33
33
dependency: transitive
34
34
description:
@@ -99,14 +99,14 @@ packages:
99
99
name: matcher
100
100
url: "https://pub.dartlang.org"
101
101
source: hosted
102
- version: "0.12.10 "
102
+ version: "0.12.11 "
103
103
meta:
104
104
dependency: transitive
105
105
description:
106
106
name: meta
107
107
url: "https://pub.dartlang.org"
108
108
source: hosted
109
- version: "1.3 .0"
109
+ version: "1.7 .0"
110
110
path:
111
111
dependency: transitive
112
112
description:
@@ -204,7 +204,7 @@ packages:
204
204
path: ".."
205
205
relative: true
206
206
source: path
207
- version: "2.0 .0"
207
+ version: "2.1 .0"
208
208
sky_engine:
209
209
dependency: transitive
210
210
description: flutter
@@ -251,7 +251,7 @@ packages:
251
251
name: test_api
252
252
url: "https://pub.dartlang.org"
253
253
source: hosted
254
- version: "0.3.0 "
254
+ version: "0.4.3 "
255
255
typed_data:
256
256
dependency: transitive
257
257
description:
@@ -265,7 +265,7 @@ packages:
265
265
name: vector_math
266
266
url: "https://pub.dartlang.org"
267
267
source: hosted
268
- version: "2.1.0 "
268
+ version: "2.1.1 "
269
269
win32:
270
270
dependency: transitive
271
271
description:
@@ -281,5 +281,5 @@ packages:
281
281
source: hosted
282
282
version: "0.2.0"
283
283
sdks:
284
- dart: ">=2.12 .0 <3.0.0"
284
+ dart: ">=2.14 .0 <3.0.0"
285
285
flutter: ">=1.20.0"
Original file line number Diff line number Diff line change @@ -84,11 +84,13 @@ class SharedValue<T> {
84
84
85
85
/// Get the value held by this state,
86
86
/// and also rebuild the widget in [context] whenever [mutate] is called.
87
- T of (BuildContext context) {
88
- InheritedModel .inheritFrom <SharedValueInheritedModel >(
89
- context,
90
- aspect: this ,
91
- );
87
+ T of ([BuildContext ? context]) {
88
+ if (context != null ) {
89
+ InheritedModel .inheritFrom <SharedValueInheritedModel >(
90
+ context,
91
+ aspect: this ,
92
+ );
93
+ }
92
94
return _value;
93
95
}
94
96
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ packages:
7
7
name: async
8
8
url: "https://pub.dartlang.org"
9
9
source: hosted
10
- version: "2.6.1 "
10
+ version: "2.8.2 "
11
11
boolean_selector:
12
12
dependency: transitive
13
13
description:
@@ -21,14 +21,14 @@ packages:
21
21
name: characters
22
22
url: "https://pub.dartlang.org"
23
23
source: hosted
24
- version: "1.1 .0"
24
+ version: "1.2 .0"
25
25
charcode:
26
26
dependency: transitive
27
27
description:
28
28
name: charcode
29
29
url: "https://pub.dartlang.org"
30
30
source: hosted
31
- version: "1.2.0 "
31
+ version: "1.3.1 "
32
32
clock:
33
33
dependency: transitive
34
34
description:
@@ -92,14 +92,14 @@ packages:
92
92
name: matcher
93
93
url: "https://pub.dartlang.org"
94
94
source: hosted
95
- version: "0.12.10 "
95
+ version: "0.12.11 "
96
96
meta:
97
97
dependency: transitive
98
98
description:
99
99
name: meta
100
100
url: "https://pub.dartlang.org"
101
101
source: hosted
102
- version: "1.3 .0"
102
+ version: "1.7 .0"
103
103
path:
104
104
dependency: transitive
105
105
description:
@@ -237,7 +237,7 @@ packages:
237
237
name: test_api
238
238
url: "https://pub.dartlang.org"
239
239
source: hosted
240
- version: "0.3.0 "
240
+ version: "0.4.3 "
241
241
typed_data:
242
242
dependency: transitive
243
243
description:
@@ -251,7 +251,7 @@ packages:
251
251
name: vector_math
252
252
url: "https://pub.dartlang.org"
253
253
source: hosted
254
- version: "2.1.0 "
254
+ version: "2.1.1 "
255
255
win32:
256
256
dependency: transitive
257
257
description:
@@ -267,5 +267,5 @@ packages:
267
267
source: hosted
268
268
version: "0.2.0"
269
269
sdks:
270
- dart: ">=2.12 .0 <3.0.0"
270
+ dart: ">=2.14 .0 <3.0.0"
271
271
flutter: ">=1.20.0"
Original file line number Diff line number Diff line change 1
1
name : shared_value
2
2
description : A straightforward way to manage global state in flutter apps.
3
- version : 2.1.0
3
+ version : 2.1.1
4
4
author :
Dev Aggarwal <[email protected] >
5
5
homepage : https://github.com/scientifichackers/flutter-shared-value
6
6
You can’t perform that action at this time.
0 commit comments