getMatchingSharedPrefKeys function
Returns List of Keys that matches with given Key
These codes are from nb_utils package.
Implementation
List<String> getMatchingSharedPrefKeys(String key) {
List<String> keys = [];
sharedPreferences.getKeys().forEach((element) {
if (element.contains(key)) {
keys.add(element);
}
});
return keys;
}