wrapWithDefaultView method
- Widget rootWidget
Used by runApp to wrap the provided rootWidget
in the default View.
The View determines into what FlutterView the app is rendered into. This is currently PlatformDispatcher.implicitView from platformDispatcher.
The rootWidget
widget provided to this method must not already be
wrapped in a View.
Implementation
Widget wrapWithDefaultView(Widget rootWidget) {
return View(
view: platformDispatcher.implicitView!,
deprecatedDoNotUseWillBeRemovedWithoutNoticePipelineOwner: pipelineOwner,
deprecatedDoNotUseWillBeRemovedWithoutNoticeRenderView: renderView,
child: rootWidget,
);
}