stdoutAsString property
stdout as a String
. Prefer text if you need to check the exit code.
Implementation
@override
Future<String> get stdoutAsString async {
if (_stdoutString != null) {
return _stdoutString!;
}
final rawResult = await _rawResult;
_stdoutString = const io.SystemEncoding().decode(rawResult.stdout);
return _stdoutString!;
}