screen<D extends Destination> method

void screen<D extends Destination>(
  1. ScreenWidgetBuilder screenWidgetFactory
)

Register a ScreenWidgetBuilder that handles destination of type D. The Widget returned by it will be used as MaterialPage.child

Implementation

void screen<D extends Destination>(
  ScreenWidgetBuilder screenWidgetFactory,
) {
  _builders.add(_BuilderItem<D>.screen(screenWidgetFactory));
}