themeTailorBuilder function

Builder themeTailorBuilder(
  1. BuilderOptions options
)

Function used by the build runner

Implementation

Builder themeTailorBuilder(BuilderOptions options) {
  return PartBuilder(
    [TailorAnnotationsGenerator(TailorMixin.fromJson(options.config))],
    '.tailor.dart',
    header: '''
    // coverage:ignore-file
    // GENERATED CODE - DO NOT MODIFY BY HAND
    // ignore_for_file: type=lint, unused_element, unnecessary_cast
    ''',
    options: options,
  );
}