Skip to content

Commit

Permalink
use allowList in SharedPreferencesAsyncAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
hoc081098 committed Aug 18, 2024
1 parent 4a4dae6 commit b1d3cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/impl/async/shared_preferences_async_adapter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class SharedPreferencesAsyncAdapter implements SharedPreferencesLike {
@override
Future<T?> read<T extends Object>(String key, Decoder<T?> decoder,
[void _]) =>
_prefsAsync.getAll().then((map) => decoder(map[key]));
_prefsAsync.getAll(allowList: {key}).then((map) => decoder(map[key]));

@override
Future<Map<String, Object?>> readAll([void _]) => _prefsAsync.getAll();
Expand Down

0 comments on commit b1d3cf0

Please sign in to comment.