runFlutterReleaseBuild function

Future<void> runFlutterReleaseBuild(
  1. String project,
  2. String repoName
)

flutter build --release

Implementation

Future<void> runFlutterReleaseBuild(
  String project,
  String repoName,
) async {
  final process = await runFlutter(
    project,
    [
      'build',
      'web',
      '--release',
      '--web-renderer',
      'html',
      '--base-href',
      '/$repoName/',
    ],
  );
  await process.exitCode;
}