RxStorage<Key extends Object, Options> constructor

RxStorage<Key extends Object, Options>(
  1. FutureOr<Storage<Key, Options>> storageOrFuture, [
  2. RxStorageLogger<Key, Options>? logger,
  3. void onDispose()?
])

Constructs a RxStorage by wrapping a Storage.

Implementation

factory RxStorage(
  FutureOr<Storage<Key, Options>> storageOrFuture, [
  RxStorageLogger<Key, Options>? logger,
  void Function()? onDispose,
]) =>
    RealRxStorage<Key, Options, Storage<Key, Options>>(
      storageOrFuture,
      logger,
      onDispose,
    );