ready property

bool ready

Check whether this store is ready for use

It must be registered, and its underlying database must be open, for this method to return true.

This is a safe method, and will not throw the FMTCStoreNotReady error, except in exceptional circumstances.

Implementation

bool get ready {
  try {
    _registry(_name);
    return true;
    // ignore: avoid_catching_errors
  } on FMTCStoreNotReady catch (e) {
    if (e.registered) rethrow;
    return false;
  }
}