checkReady method

void checkReady(
  1. bool expectNotClosed
)

Implementation

void checkReady(final bool expectNotClosed) {
  if (!isReady()) {
    throw Exception("ABSmartly Context is not yet ready");
  } else if (expectNotClosed) {
    checkNotClosed();
  }
}