first property
Future<T>
get
first
The first element of this stream. Returns last emitted value if available, or waits for the first element to come. May throw, if first value is an error.
Implementation
Future<T> get first => valueOrNull != null ? Future.value(valueOrNull) : innerStream.first;