Returns true if exitCode matches expectedExitCode.
true
expectedExitCode
Future<bool> checkExitCode([int expectedExitCode = 0]) async { var exitCode = await this.exitCode; var ok = exitCode == expectedExitCode; return ok; }