getStore method

Future<TStore> getStore(
  1. String name
)

Returns the store.

Implementation

Future<TStore> getStore(String name) async {
  await init();

  if (!stores.containsKey(name)) {
    stores.putIfAbsent(name, () => TStore(name));
  }

  return stores[name]!;
}