stdoutAsString property

  1. @override
String get stdoutAsString

stdout as a String. Prefer text if you need to check the exit code.

Implementation

@override
String get stdoutAsString {
  if (_stdoutString != null) {
    return _stdoutString!;
  }
  _stdoutString = const io.SystemEncoding().decode(_rawResult.stdout);
  return _stdoutString!;
}