build method

  1. @override
Future build(
  1. BuildStep buildStep
)

Generates the outputs for a given BuildStep.

Implementation

@override
Future build(BuildStep buildStep) async {
  final resolver = buildStep.resolver;
  if (!await resolver.isLibrary(buildStep.inputId)) return;
  final lib = await buildStep.inputLibrary;
  await _generateForLibrary(lib, buildStep);
}