setRootWidget method

Future<void> setRootWidget(
  1. Widget rootWidget
)

Implementation

Future<void> setRootWidget(Widget rootWidget) async {
  print('[Navigator] setRootWidget $rootWidget');
  final PageConfiguration configuration =
      PageConfiguration(path: getPath(rootWidget), child: rootWidget);
  setNewRoutePath(configuration);
}