done method
Implementation
Stream done() async* {
if (parent != null) {
var parentResult = await parent!.done().first;
if (test == null || test!(parentResult)) {
var result = await centralStation
.send(context, command, waitingText: waitingText)!
.first;
yield result;
} else {
yield failResult;
}
} else {
var result = await centralStation
.send(context, command, waitingText: waitingText)!
.first;
yield result;
}
}