getKeys method
Returns all keys on the the platform that match provided parameters
.
If no restrictions are provided, fetches all keys stored on the platform.
Ignores any keys whose values are types which are incompatible with shared_preferences.
Implementation
Future<Set<String>> getKeys({Set<String>? allowList}) async {
final GetPreferencesParameters parameters = GetPreferencesParameters(
filter: PreferencesFilters(allowList: allowList));
return _platform.getKeys(parameters, _options);
}