GenerateModule class
Annotation to mark a class as an Air module
Generates module structure with routes and dependencies.
Example:
@GenerateModule('shop')
class ShopModule extends _ShopModule {
@Route('/shop') Widget shopScreen();
@Route('/shop/:id') Widget productDetail(String id);
}
Constructors
Properties
-
dependencies
→ List<
String> -
Module dependencies (other module IDs)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialRoute → String?
-
Optional initial route
final
- lazy → bool
-
Whether this module should be lazy loaded
final
- moduleId → String
-
Module ID
final
- name → String?
-
Optional module name
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → String?
-
Optional module version
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