flutterDir static method

String? flutterDir({
  1. Map<String, String>? environment,
})

Where just keeps the Flutter SDKs it installs, one folder per version: ~/.just/flutter (%USERPROFILE%\.just\flutter on Windows), unless JUST_CORE_CLI_FLUTTER_DIR names another folder. Null when the home folder can't be found.

Implementation

static String? flutterDir({Map<String, String>? environment}) {
  final env = environment ?? Platform.environment;
  final override = _set(env[flutterDirVariable]);
  if (override != null) return normalPath(override);
  final base = home(environment: env);
  return base == null ? null : '$base/.just/flutter';
}