BotMemoryStorageWrapper<T> constructor

BotMemoryStorageWrapper<T>({
  1. DeleteCallback<T>? onDeleted,
  2. WriteCallback<T>? onUpdated,
  3. 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;