BotMemoryStorageWrapper<T> constructor
BotMemoryStorageWrapper<T> ({
- DeleteCallback<
T> ? onDeleted, - WriteCallback<
T> ? onUpdated, - T? initValue,
Provide onUpdated
and onDeleted
callbacks, in addition to initValue
instead of implementing BotMemoryStorage interface directly
Implementation
BotMemoryStorageWrapper({
DeleteCallback<T>? onDeleted,
WriteCallback<T>? onUpdated,
T? initValue,
}) : _onUpdated = onUpdated,
_delete = onDeleted,
_initValue = initValue;