Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit f860651

Browse files
committed
improve example
1 parent df44971 commit f860651

File tree

1 file changed

+2
-1
lines changed
  • packages/shared_preferences/shared_preferences

1 file changed

+2
-1
lines changed

packages/shared_preferences/shared_preferences/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@ _incrementCounter() async {
4242
You can populate `SharedPreferences` with initial values in your tests by running this code:
4343

4444
```dart
45-
SharedPreferences.setMockInitialValues (Map<String, Object> values);
45+
Map<String, Object> values = <String, Object>{'counter': 1};
46+
SharedPreferences.setMockInitialValues(values);
4647
```

0 commit comments

Comments
 (0)