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