getAndroidBuildVariants method

Future<Map<String, Object?>> getAndroidBuildVariants({
  1. required String rootPath,
})

Implementation

Future<Map<String, Object?>> getAndroidBuildVariants({
  required String rootPath,
}) {
  return _runFlutterCommand(
    <String>['analyze', '--android', '--list-build-variants', rootPath],
    outputMatcher: _androidBuildVariantJsonRegex,
  ).then<Map<String, Object?>>(
    _handleJsonOutput,
    onError: _handleRunFlutterError,
  );
}