initializedSuccessfully method

  1. @protected
void initializedSuccessfully()

The method that marks the object has been initialized successfully.

Implementation

@protected
void initializedSuccessfully() {
  if (_completer.isCompleted) {
    throw EnsureInitializedException('Object was already initialized');
  }

  _completer.complete();
}