checkInitialized method
void
checkInitialized()
Checks if this instance is initialized.
Throws a StateError if is not initialized and can't initialize it synchronously.
Implementation
void checkInitialized() {
if (!isInitialized) {
if (isInitializing) return;
// ignore: discarded_futures
var ret = _doInitializationImpl();
if (ret is Future<InitializationResult>) {
throw StateError(
"Not initialized yet! Async initialization for: $this");
}
}
}