exitCode Future<int?> get exitCode Wait for the process to exit and return the exit code. Implementation Future<int?> get exitCode { final completer = Completer<int?>(); onExit(completer.complete); return completer.future; }