NavkitRoutesGenerator class
A code generator that automatically creates a NavkitRoutes class
based on classes annotated with @NavkitRoute.
For every annotated widget:
- If
isInitial: true, it generates a root route/. - Otherwise, it generates a route based on the class name,
e.g.,
MyScreen→/myScreenRoute.
The generated NavkitRoutes class contains:
- Static constants for each route
- A map of all registered routes
Constructors
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
-
generate(
LibraryReader library, BuildStep buildStep) → String - Generates Dart code for an input Dart library.
-
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