PageFactory class

A class that builds Page from NavigationStack. It is the only way to assocaited NavigationStack with UI.

Constructors

PageFactory()
Create a PageFactory.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildPage(BuildContext context, NavigationStack stack) Page
Build a Page from NavigationStack.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
page<D extends Destination>(PageBuilder pageFactory) → void
Register a PageBuilder that handles destination of type D.
screen<D extends Destination>(ScreenWidgetBuilder screenWidgetFactory) → void
Register a ScreenWidgetBuilder that handles destination of type D. The Widget returned by it will be used as MaterialPage.child
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited