scheduleAttachRootWidget method

  1. @override
void scheduleAttachRootWidget(
  1. Widget rootWidget
)
override

Schedules a Timer for attaching the root widget.

This is called by runApp to configure the widget tree. Consider using attachRootWidget if you want to build the widget tree synchronously.

Implementation

@override
void scheduleAttachRootWidget(Widget rootWidget) {
  // We override the default version of this so that the application-startup widget tree
  // build does not schedule timers which we might never get around to running.
  assert(inTest);
  attachRootWidget(rootWidget);
  _currentFakeAsync!.flushMicrotasks();
}