clear method
Implementation
@override
Future<bool> clear() async {
await init();
List<String> getItems() =>
_prefs
?.getKeys()
.where((element) => element.startsWith(_prefix))
.toList() ??
[];
for (final _item in getItems()) {
_prefs?.remove(_item);
}
return getItems().isEmpty;
}