componentLibraryBuilder function

Builder componentLibraryBuilder(
  1. BuilderOptions options
)

Generator for components that creates an implementation of an abstract component class.

Implementation

Builder componentLibraryBuilder(BuilderOptions options) {
  const header =
      '// GENERATED CODE - DO NOT MODIFY BY HAND\n// ignore_for_file: unused_element, non_constant_identifier_names, no_leading_underscores_for_local_identifiers, prefer_const_constructors\n';

  return LibraryBuilder(
    ComponentGenerator(),
    generatedExtension: '.component.dart',
    header: header,
  );
}