resolveCommand static method

Future<String> resolveCommand(
  1. String projectRoot, {
  2. String? configuredCommand,
})

Selects a project-owned command or the repository-aware Flutter default.

Implementation

static Future<String> resolveCommand(
  String projectRoot, {
  String? configuredCommand,
}) async {
  if (configuredCommand != null) return configuredCommand;
  final executable = await FlutterToolchain.resolveExecutable(projectRoot);
  return '$executable build appbundle --release';
}