enumAssist function
Builder
enumAssist(
- BuilderOptions options
Supports package:build_runner
creation and configuration of
enum_assist
.
Not meant to be invoked by hand-authored code.
Implementation
Builder enumAssist(BuilderOptions options) {
// get settings from the build file
final settings = Settings.resolve(options.config);
final ignores = [
'constant_identifier_names',
'prefer_const_declarations',
'unused_local_variable',
'prefer_int_literals',
'lines_longer_than_80_chars',
'prefer_const_constructors'
];
return PartBuilder([EnumAssistGenerator.fromSettings(settings)], '.ge.dart',
header: '''
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: ${ignores.join(',')}
''');
}