We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b15310d commit 43758f1Copy full SHA for 43758f1
README.md
@@ -67,13 +67,13 @@ final SharedValue<int> counter = SharedValue(
67
autosave: true, // autosave to shared prefs when value changes (optional)
68
);
69
70
-// Load [counter]'s value from shared preferences
71
-await
72
-counter.load();
+void main() async {
+ // Load [counter]'s value from shared preferences
+ await counter.load();
73
74
-// Store [counter]'s value to shared preferences (enabling `autosave` does this automatically)
75
76
-counter.store();
+ // Store [counter]'s value to shared preferences (enabling `autosave` does this automatically)
+ await counter.store();
+}
77
```
78
79
## Efficiency
0 commit comments