resolveOutputReadyType static method
OutputReadyType
resolveOutputReadyType(
- OutputReadyFunction? stdoutReadyFunction,
- OutputReadyFunction? stderrReadyFunction
Implementation
static OutputReadyType resolveOutputReadyType(
OutputReadyFunction? stdoutReadyFunction,
OutputReadyFunction? stderrReadyFunction) {
var outputReadyType = OutputReadyType.stdout;
if ((stdoutReadyFunction != null && stderrReadyFunction != null) ||
(stdoutReadyFunction == null && stderrReadyFunction == null)) {
outputReadyType = OutputReadyType.any;
} else if (stdoutReadyFunction != null) {
outputReadyType = OutputReadyType.stdout;
} else if (stderrReadyFunction != null) {
outputReadyType = OutputReadyType.stderr;
}
return outputReadyType;
}