findAndroidDir static method

String? findAndroidDir(
  1. String projectDir
)

Find Android directory in a Flutter project

Implementation

static String? findAndroidDir(String projectDir) {
  final androidDir = path.join(projectDir, 'android');
  if (Directory(androidDir).existsSync()) {
    return androidDir;
  }
  return null;
}