set method
Implementation
@override
Future<void> set(String key, T value) async {
checkInitialized();
if (data.containsKey(key)) {
onUpdate.broadcast(
StoreUpdateEvent(
key,
value,
),
);
} else {
onCreate.broadcast(
StoreCreateEvent(
key,
value,
),
);
}
data[key] = value;
await persist();
}