getAll method

Future<Map<String, Object?>> getAll({
  1. Set<String>? allowList,
})

Returns all keys and values on the the platform that match provided parameters.

If no restrictions are provided, fetches all entries stored on the platform.

Ignores any entries of types which are incompatible with shared_preferences.

Implementation

Future<Map<String, Object?>> getAll({Set<String>? allowList}) async {
  final GetPreferencesParameters parameters = GetPreferencesParameters(
      filter: PreferencesFilters(allowList: allowList));
  return _platform.getPreferences(parameters, _options);
}