DBMaterialPage class Null safety

A DBPage implementation for material.

Inheritance
Mixed in types

Constructors

DBMaterialPage({required LocalKey key, required Destination destination, required Widget child, String? restorationId, DBPageRoute customPageRouteFactory(DBMaterialPage page)?})
Create a DBMaterialPage with key identifying the page, destination of the page and child to put at that destination.

Properties

allowSnapshotting bool
Whether the route transition will prefer to animate a snapshot of the entering/exiting routes.
finalinherited
arguments Object?
The arguments passed to this route.
finalinherited
child Widget
The content to be shown in the Route created by this page.
finalinherited
customPageRouteFactory → (DBPageRoute Function(DBMaterialPage page)?)
Function that create a DBPageRoute.
final
destination Destination
The Destination for which this page was created.
final
fullscreenDialog bool
Whether this page route is a full-screen dialog.
finalinherited
hashCode int
The hash code for this object.
read-onlyinherited
key LocalKey?
The key associated with this page.
finalinherited
maintainState bool
Whether the route should remain in memory when it is inactive.
finalinherited
name String?
The name of the route (e.g., "/settings").
finalinherited
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.
read-onlyinherited

Methods

canUpdate(Page other) bool
Whether this page can be updated with the other page.
inherited
createRoute(BuildContext context) Route<Object?>
Creates the Route that corresponds to this page.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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