lastWhere method

  1. @override
AsObservableFuture<T> lastWhere (bool test(T element), { Object defaultValue(), T orElse() })

Finds the last element in this stream matching test.

If this stream emits an error, the returned future is completed with that error, and processing stops.

Otherwise as firstWhere, except that the last matching element is found instead of the first. That means that a non-error result cannot be provided before this stream is done.

Implementation

@override
AsObservableFuture<T> lastWhere(bool test(T element),
        {Object defaultValue(), T orElse()}) =>
    AsObservableFuture<T>(_stream.lastWhere(test, orElse: orElse));