FFRoute class

Annotation to generate route

Constructors

FFRoute({required String name, bool showStatusBar = true, String routeName = '', PageRouteType? pageRouteType, String description = '', Map<String, dynamic>? exts, List<String>? argumentImports, Map<String, String>? codes})
const

Properties

argumentImports List<String>?
The imports of arguments. For example, class/enum argument should provide import url. argumentImports:
final
codes Map<String, String>?
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
name String
The name of the route (e.g., "/settings").
final
pageRouteType PageRouteType?
The type of page route
final
routeName String
The route name to track page
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showStatusBar bool
Whether show status bar.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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

Static Methods

getArgumentValues(Map arguments) List
get values as constructor parameters order you should enable --super-arguments and --argument-names

Constants

notFoundName → const String
notFoundRouteName → const String