checkIfFlutterAvailable static method

Future<bool> checkIfFlutterAvailable()

Implementation

static Future<bool> checkIfFlutterAvailable() async {
  try {
    await run(
      'flutter',
      ['--version'],
    );
    return true;
  } catch (e) {
    return false;
  }
}