method
singleWhere

Future<T> singleWhere(
bool test(T element)
)

Finds the single element in this stream matching test.

Like lastMatch, except that it is an error if more than one matching element occurs in the stream.