write method
Writes data to the running process's stdin. Returns false when no
process is bound or the write failed (the process is already gone) —
never throws.
Implementation
bool write(String data) {
final sink = _sink;
if (sink == null) return false;
try {
sink(data);
return true;
} on Object {
return false;
}
}