postGenerate method

Future<void> postGenerate({
  1. bool buildRunner = false,
  2. bool format = true,
  3. bool genL10n = false,
})

Executes configured post-generation tasks.

Optionally generates localization files, runs build runner, and formats generated source files.

Implementation

Future<void> postGenerate({
  bool buildRunner = false,
  bool format = true,
  bool genL10n = false,
}) async {
  if (genL10n) await this.genL10n();
  if (buildRunner) await this.buildRunner();
  if (format) await this.format();
}