Skip to content

Commit ada7d29

Browse files
authored
doc(README): how to write string values into JsonCacheSecStorage
1 parent fb26952 commit ada7d29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ is an implementation on top of the
207207
208208
final secStorage = FlutterSecureStorage(…);
209209
final JsonCache jsonCache = JsonCacheSecStorage(secStorage);
210-
// Write a simple string value defining it as a key of the literal map.
210+
// In order to write a string value, define it as a map key whose associated
211+
// value is a boolean placeholder value set to 'true'.
211212
final Map<String, dynamic> info = {'an secret info': true};
212213
jsonCache.refresh('secret', info);
213214

0 commit comments

Comments
 (0)