canRun method Null safety
override
Returns true if the executable exists and if it can be executed.
Implementation
@override
bool canRun(covariant String executable, {String? workingDirectory}) =>
getExecutablePath(executable, workingDirectory, throwOnFailure: false) !=
null;