delete method
Implementation
@override
Future<void> delete(String key) async {
checkInitialized();
if (!data.containsKey(key)) {
return;
}
onDelete.broadcast(
StoreDeleteEvent(
key,
data.remove(key) as T,
),
);
await persist();
}