FFPage<T> class

Navigator 2.0

Inheritance

Constructors

FFPage({required String name, required LocalKey key, required PageBuilder builder, Object? arguments, bool? showStatusBar, String? routeName, PageRouteType? pageRouteType, String? description, Map<String, dynamic>? exts, Map<String, dynamic>? codes})

Properties

arguments Object?
The arguments passed to this route.
finalinherited
builder PageBuilder
The builder return the page
final
codes Map<String, dynamic>?
to support something can't write in annotation it will be hadnled as a code when generate route
final
description String?
The description of route
final
exts Map<String, dynamic>?
The extend arguments
final
hashCode int
The hash code for this object.
no setterinherited
isCompleted bool
no setter
key LocalKey?
The key associated with this page.
finalinherited
name String?
The name of the route (e.g., "/settings").
finalinherited
pageRouteType PageRouteType?
The type of page route
final
popped Future<T>
A future that completes when this route is popped off the navigator.
no setter
restorationId String?
Restoration ID to save and restore the state of the Route configured by this page.
finalinherited
routeName String?
The route name to track page
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showStatusBar bool?
The Widget base on this route Whether show status bar.
final

Methods

canUpdate(Page other) bool
Whether this page can be updated with the other page.
inherited
copyWith({String? name, Object? arguments, LocalKey? key, PageBuilder? builder, bool? showStatusBar, String? routeName, PageRouteType? pageRouteType, String? description, Map<String, dynamic>? exts, Map<String, dynamic>? codes}) FFPage<T>
createRoute(BuildContext context) Route<T>
Creates the Route that corresponds to this page.
override
didPop([T? result]) bool
pop this route
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFFRouteSettings({String? name, Object? arguments, LocalKey? key, PageBuilder? builder, bool? showStatusBar, String? routeName, PageRouteType? pageRouteType, String? description, Map<String, dynamic>? exts, Map<String, dynamic>? codes}) FFRouteSettings
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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