initializedSuccessfully method

  1. @protected
void initializedSuccessfully(
  1. T result
)

The method that marks the object has been initialized successfully.

Implementation

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

  _completer.complete(result);
}