checkApiReadyingOrReady method

  1. @protected
void checkApiReadyingOrReady()

Throws an Error if the API is not in a readying or ready status.

Implementation

@protected
void checkApiReadyingOrReady() => checkState(
  _apiStatus == _ApiStatus.readying || _apiStatus == _ApiStatus.ready,
  message: () =>
      "JSON-SQLite API must be in `readying` or `ready` state, "
      "got `${_apiStatus.name}`",
);