generate method
List<Directive>
generate(
)
override
Implementation
@override
List<Directive> generate() {
final serializationImports = switch (options.deserialization) {
DeserializationType.web => [
Directive.import('package:messages/messages_json.dart')
],
};
final pluralImports = switch (options.pluralSelector) {
PluralSelectorType.intl => [Directive.import('package:intl/intl.dart')],
PluralSelectorType.intl4x => [
Directive.import('package:intl4x/intl4x.dart')
],
PluralSelectorType.custom => <Directive>[],
};
return [...serializationImports, ...pluralImports];
}