resetPreferences method
Implementation
Future resetPreferences() async {
final removals = <Future>[];
final keys = await this.knownKeys;
for (final key in keys) {
for (var prefix in _knownPrefixes) {
if (key.startsWith(prefix)) {
log.info("Removing preference: ${prefName(key)}");
removals.add(remove(key));
continue;
}
}
}
await Future.wait(removals);
}