markAsUninitialized method
Marks that the object is again not initialized. After this, you can call
initializedSuccessfully again.
Throws:
EnsureInitializedExceptionif object was not initialized yet.
Implementation
@protected
@visibleForTesting
void markAsUninitialized() {
if (!isInitialized) {
throw EnsureInitializedException(wasNotInitializedYetMessage);
}
_completer = Completer();
_whenUninitializedStreamController.add(null);
}