FlutterNavigator class

Marks a class as a navigator and create a base navigator mixin for it

Constructors

FlutterNavigator({String? navigatorClassName, Type? pageType, Type? unknownRoute, bool ignoreKeysByDefault = true, IncludeQueryParametersType includeQueryParameters = IncludeQueryParametersType.onlyOnWeb, List<Type> defaultGuards = const [], List<String> removeSuffixes = const ['Page', 'Screen', 'View', 'Widget']})
const

Properties

defaultGuards List<Type>
Adds these guards to all routes where no guards are specified. Useful for adding e.g. login guards without having to add them to every route
final
hashCode int
The hash code for this object.
no setterinherited
ignoreKeysByDefault bool
Ignore Key? key argument by default, override single fields with FlutterRouteField
final
includeQueryParameters IncludeQueryParametersType
Whether to use query parameters to provide the arguments Default is IncludeQueryParametersType.onlyOnWeb
final
The name of the navigator mixin to generate If not provided 'BaseNavigator' will be used
final
pageType Type?
Override the default page type MaterialPageRoute to use a custom page type so you can customize the transition. Must extend PageRoute
final
removeSuffixes List<String>
Remove the suffixes from the class name in the routename. Does not effect custom route names
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unknownRoute Type?
Set a screen to be used when no route is found
final

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