next property
Future<T>
get
next
Implementation
Future<T> get next async {
final event = await _nextEvent;
if (event is _DataEvent) {
return (event as _DataEvent).data;
} else if (event is _ErrorEvent) {
throw (event as _ErrorEvent).error;
} else {
throw Exception('Done.');
}
}