markAsReady method

void markAsReady()

Completes the isReadyCompleter completer if it is not already complete.

This method is used to mark the instance as ready.

Implementation

void markAsReady() {
  _isInitialised = true;
  isReadyCompleter.completeIfNotComplete();
}