initializedSuccessfully method
- @protected
- @visibleForTesting
Marks that the object has been initialized successfully.
Throws:
- EnsureInitializedException if object was already initialized.
Implementation
@protected
@visibleForTesting
void initializedSuccessfully() {
if (isInitialized) {
throw EnsureInitializedException(alreadyInitializedMessage);
}
_completer.complete();
_whenInitializedStreamController.add(null);
}