runProcess method

  1. @override
int? runProcess(
  1. String command,
  2. List<String> args
)
override

Run a process synchronously. Returns the exit code, or null if not supported.

Implementation

@override
int? runProcess(String command, List<String> args) {
  try {
    final result = io.Process.runSync(command, args);
    return result.exitCode;
  } catch (_) {
    return null;
  }
}