terminalAppFound function

Future<bool> terminalAppFound(
  1. String name
)

Determines whether any directory in terminalAppDirectories (PATH environmental variable) contains the given application.

In browsers, the method always returns false.

Example

import 'package:os/os_memory.dart';

Future<void> main() async {
  final hasDart = await terminalAppFound('dart');
  print('Dart SDK installed: $hasDart');
}

Implementation

Future<bool> terminalAppFound(String name) => terminalAppFoundImpl(name);