BeamPage class
A wrapper for screens in a navigation stack.
- Inheritance
-
- Object
- RouteSettings
- Page
- BeamPage
Constructors
-
BeamPage({LocalKey? key, String? name, required Widget child, String? title, bool onPopPage(BuildContext context, BeamerDelegate<
BeamState> delegate, BeamPage poppedPage) = defaultOnPopPage, String? popToNamed, BeamPageType type = BeamPageType.material, PageRoute pageRouteBuilder(RouteSettings settings, Widget child)?, bool keepQueryOnPop = false})
Properties
- arguments → Object?
-
The arguments passed to this route.
finalinherited
- child → Widget
-
The concrete Widget representing app's screen.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- keepQueryOnPop → bool
-
When this BeamPage pops from Navigator stack, whether to keep the
query parameters within current BeamLocation.
final
- key → LocalKey?
-
The key associated with this page.
finalinherited
- name → String?
-
The name of the route (e.g., "/settings").
finalinherited
-
onPopPage
→ bool Function(BuildContext context, BeamerDelegate<
BeamState> delegate, BeamPage poppedPage) -
Overrides the default pop by executing an arbitrary closure.
Mainly used to manually update the
delegate.currentBeamLocation
state.final - pageRouteBuilder → (PageRoute Function(RouteSettings settings, Widget child)?)
-
A builder for custom PageRoute to use in createRoute.
final
- popToNamed → String?
-
Overrides the default pop by beaming to specified URI string.
final
- restorationId → String?
-
Restoration ID to save and restore the state of the Route configured by
this page.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String?
-
The BeamPage's title. On the web, this is used for the browser tab title.
final
- type → BeamPageType
-
The type to determine how a route should be built.
final
Methods
-
canUpdate(
Page other) → bool -
Whether this page can be updated with the
other
page.inherited -
createRoute(
BuildContext context) → Route -
Creates the Route that corresponds to this page.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
defaultOnPopPage(
BuildContext context, BeamerDelegate< BeamState> delegate, BeamPage poppedPage) → bool - The default pop behavior for BeamPage.