isInstalled function

Future<bool> isInstalled(
  1. String processName
)

Implementation

Future<bool> isInstalled(String processName) async {
  try {
    await runProcess(
      'which',
      [processName],
      runInShell: true,
    );
    return true;
  } catch (_) {
    return false;
  }
}