2025-05-18 00:50:47 +03:00
|
|
|
/// An annotation used to mark a Dart class or library as a module.
|
|
|
|
|
///
|
|
|
|
|
/// This annotation can be used for tooling, code generation,
|
|
|
|
|
/// or to provide additional metadata about the module.
|
|
|
|
|
///
|
|
|
|
|
/// Example:
|
|
|
|
|
/// ```dart
|
|
|
|
|
/// @module()
|
|
|
|
|
/// abstract class AppModule extends Module {
|
|
|
|
|
/// }
|
|
|
|
|
/// ```
|
|
|
|
|
/// Сгенерирует код:
|
|
|
|
|
/// ```dart
|
|
|
|
|
/// final class $AppModule extends AppModule {
|
|
|
|
|
/// @override
|
|
|
|
|
/// void builder(Scope currentScope) {
|
|
|
|
|
///
|
|
|
|
|
/// }
|
|
|
|
|
/// }
|
2025-05-17 00:34:56 +03:00
|
|
|
// ignore: camel_case_types
|
2025-05-18 00:50:47 +03:00
|
|
|
final class module {
|
|
|
|
|
/// Creates a [module] annotation.
|
2025-05-17 00:34:56 +03:00
|
|
|
const module();
|
2025-05-16 09:30:30 +03:00
|
|
|
}
|