expectedErrors property
Iterable<E>
get
expectedErrors
Implementation
Iterable<E> get expectedErrors sync* {
final pending = <Cause<E>>[this];
while (pending.isNotEmpty) {
final cause = pending.removeLast();
switch (cause) {
case Expected(:final error):
yield error;
case Sequential(:final first, :final second):
pending.addAll([second, first]);
default:
break;
}
}
}