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.
Implementation
Future<T> get first => valueOrNull != null ? Future.value(valueOrNull) : innerStream.first;