dataClass function
Builder
dataClass(
- BuilderOptions options
Dart entry point for building a DataClass generated files
Implementation
Builder dataClass(BuilderOptions options) {
final config = Config.fromJson(options.config);
return SharedPartBuilder(
[DataClassGenerator(config: config)],
'data_class',
formatOutput: DartFormatter(
pageWidth: config.pageWidth,
fixes: {StyleFix.singleCascadeStatements},
).format,
);
}