NavkitRoute class

Annotation used to mark widgets for automatic route generation

When you annotate a widget class with NavkitRoute, the code generator will automatically create route names for it in the NavkitRoutes class.

Example:

@NavkitRoute(isInitial: true)
class HomeScreen extends StatelessWidget { ... }

This will generate a route named / for HomeScreen.

Constructors

Creates a NavkitRoute annotation.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isInitial bool
Marks this widget as the initial route (root "/").
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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