macro.json
Macro configuration file
| Type | object |
|---|---|
| File match |
macro.json
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/macro-json/latest.json |
| Source | https://raw.githubusercontent.com/rebaz94/macro_kit/refs/heads/main/macro_schema.json |
Validate with Lintel
npx @lintel/lintel check
Configuration file for Dart macro system
Properties
Global macro configuration settings
4 nested properties
Directory path where generated files should be remapped to
Automatically rebuild when connecting
Always force rebuild on connect
Skip connect-triggered rebuilds when external auto-run process is active. Disables auto_rebuild_on_connect and always_rebuild_on_connect if macro generation is being handled by a separate auto-run process. Set to true when autoRunMacro from your macro_context.dart is true
Configuration for individual macros
3 nested properties
Configuration for the built-in DataClassMacro
12 nested properties
Field renaming strategy
Generate fromJson method
Generate toJson method
Generate mapTo method
Generate as cast methods
Generate equality operator override
Generate copyWith method
When true, generates copyWith methods using Option
Generate toString override
Include null fields in JSON serialization
List of types to be treated as literals
[]
Use 'toMap'/'fromMap' naming convention instead of 'toJson'/'fromJson'. This is configured globally since data classes that depend on other data classes need consistent method names.
Configuration for the WidgetStateMacro
1 nested properties
Controls how state field visibility is resolved when no explicit visibility is specified on the annotation.
Configuration for the WidgetStateMacro
1 nested properties
Controls how state field visibility is resolved when no explicit visibility is specified on the annotation.
Definitions
Configuration for the built-in DataClassMacro
Field renaming strategy
Generate fromJson method
Generate toJson method
Generate mapTo method
Generate as cast methods
Generate equality operator override
Generate copyWith method
When true, generates copyWith methods using Option
Generate toString override
Include null fields in JSON serialization
List of types to be treated as literals
[]
Use 'toMap'/'fromMap' naming convention instead of 'toJson'/'fromJson'. This is configured globally since data classes that depend on other data classes need consistent method names.
Configuration for the WidgetStateMacro
Controls how state field visibility is resolved when no explicit visibility is specified on the annotation.