build method
Generates the outputs for a given BuildStep.
Implementation
@override
FutureOr<void> build(BuildStep buildStep) async {
if (customConfig['enabled'] == false) return;
String content = '';
String fileContent = await buildStep.readAsString(buildStep.inputId);
if (fileContent.contains('@AppTextsSource()')) {
content = _parseContent(fileContent, customConfig['name'] ?? 'AppTexts');
}
if (content.isNotEmpty) {
await buildStep.writeAsString(buildStep.allowedOutputs.single, content);
}
}