property
single

Future<T> single
read-only

Returns the single element.

If an error event occurs before or after the first data event, the resulting future is completed with that error.

If [this] is empty or has more than one element throws a [StateError].