AdaptivePageRoute class
Provides platform-adaptive page routes.
Returns MaterialPageRoute on Material platforms and CupertinoPageRoute on Cupertino platforms.
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
-
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
-
create<
T> ({required WidgetBuilder builder, RouteSettings? settings, bool maintainState = true, bool fullscreenDialog = false, String? title}) → PageRoute< T> - Creates a platform-adaptive PageRoute.
-
push<
T> (BuildContext context, {required WidgetBuilder builder, RouteSettings? settings, bool maintainState = true, bool fullscreenDialog = false, String? title}) → Future< T?> - Pushes a new route using the platform-adaptive page route.
-
pushAndRemoveAll<
T> (BuildContext context, {required WidgetBuilder builder, RouteSettings? settings, bool maintainState = true, bool fullscreenDialog = false, String? title}) → Future< T?> - Pushes a new route and removes all previous routes.
-
pushReplacement<
T extends Object?, TO extends Object?> (BuildContext context, {required WidgetBuilder builder, RouteSettings? settings, bool maintainState = true, bool fullscreenDialog = false, String? title, TO? result}) → Future< T?> - Replaces the current route with a new platform-adaptive page route.