reset method

Future<void> reset()

Implementation

Future<void> reset() async {
  await _initFuture;
  if (store is ResetableStore) {
    // TODO add method to await previous store.load call and then call reset
    // right now reset call when _load in progress
    await (store as ResetableStore).reset();
    await _load(null);
  } else {
    throw Exception("Store is not ResetableStore and can't be reset");
  }
}