checkFlutterAvailability static method
Check if Flutter is available in the system
Implementation
static Future<bool> checkFlutterAvailability() async {
try {
final String flutterPath = getFlutterPath();
final result = await Process.run(flutterPath, ['--version']);
if (result.exitCode == 0) {
return true;
} else {
print('Flutter not found: ${result.stderr}');
return false;
}
} catch (e) {
print('Flutter not found: $e');
return false;
}
}