ff_annotation_route_library library Null safety

Classes

FFArgumentImport
Annotation of argumentImport
FFConvert
FFNavigatorObserver
The NavigatorObserver to listen route change
FFPage<T>
Navigator 2.0
FFRoute
Annotation to generate route
FFRouteInformationParser
A delegate that is used by the Router widget to parse a route information into a configuration of type RouteSettings.
FFRouterDelegate
A delegate that is used by the Router widget to build and configure a navigating widget.
FFRouteSettings
Navigator 1.0
FFTransparentPageRoute<T>
Transparent Page Route

Constants

constructorName → const String
'constructorName'

Functions

asT<T extends Object?>(dynamic value, [T? defaultValue]) → T?
onGenerateRoute({required RouteSettings settings, required GetRouteSettings getRouteSettings, PageBuilder? notFoundPageBuilder, Map<String, dynamic>? arguments, RouteSettingsWrapper? routeSettingsWrapper}) Route
onGenerateRoute for Navigator 1.0

Enums

PageRouteType

Typedefs

GetRouteSettings = FFRouteSettings Function({Map<String, dynamic>? arguments, required String name, PageBuilder? notFoundPageBuilder})
The getRouteSettings method which is created by ff_annotation_route
FFRouterDelegate.navigatorWrapper
PageBuilder = Widget Function()
The builder return the page
PagePredicate = bool Function(FFPage page)
Signature for the FFRouterDelegate.popUntil predicate argument.
PageWrapper = FFPage<T> Function<T>(FFPage<T> pageRoute)
FFRouterDelegate.pageWrapper, re-define FFPage in this call back
RouteChange = void Function(Route? newRoute, Route? oldRoute)
Route change call back FFNavigatorObserver.routeChange
RouteSettingsWrapper = FFRouteSettings Function(FFRouteSettings pageRoute)
onGenerateRoute, re-define FFRouteSettings in this call back