build method Null safety

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

Generates the outputs for a given BuildStep.

Implementation

@override
Future build(BuildStep buildStep) async {
  if (!await buildStep.canRead(buildStep.inputId)) return;
  _buildInputsController.add(buildStep.inputId);
  await _build(buildStep, buildExtensions);
  await _extraWork?.call(buildStep, buildExtensions);
  _buildsCompletedController.add(buildStep.inputId);
}