Skip to content

Commit c4aa92b

Browse files
committed
README
1 parent 43758f1 commit c4aa92b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,11 @@ Widget build(BuildContext context) {
6363
```dart
6464
// provide a shared_prefences key
6565
final SharedValue<int> counter = SharedValue(
66-
key: "counter", // disk storage key for shared_preferences (optional)
67-
autosave: true, // autosave to shared prefs when value changes (optional)
66+
// disk storage key for shared_preferences (optional)
67+
key: "counter",
68+
69+
// autosave to shared prefs when value changes (optional)
70+
autosave: true,
6871
);
6972
7073
void main() async {

0 commit comments

Comments
 (0)