Skip to content

Commit 43758f1

Browse files
committed
README
1 parent b15310d commit 43758f1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ final SharedValue<int> counter = SharedValue(
6767
autosave: true, // autosave to shared prefs when value changes (optional)
6868
);
6969
70-
// Load [counter]'s value from shared preferences
71-
await
72-
counter.load();
70+
void main() async {
71+
// Load [counter]'s value from shared preferences
72+
await counter.load();
7373
74-
// Store [counter]'s value to shared preferences (enabling `autosave` does this automatically)
75-
await
76-
counter.store();
74+
// Store [counter]'s value to shared preferences (enabling `autosave` does this automatically)
75+
await counter.store();
76+
}
7777
```
7878

7979
## Efficiency

0 commit comments

Comments
 (0)