runInit method

  1. @nonVirtual
Future<void> runInit()

Runs initController and completes ready. Called once by the state when the controller is created — do not call this manually.

Implementation

@nonVirtual
Future<void> runInit() async {
  if (_readyCompleter.isCompleted) return;
  try {
    await initController();
    _readyCompleter.complete();
  } catch (error, stackTrace) {
    _readyCompleter.completeError(error, stackTrace);
  }
}