lastWhere method

  1. @override
AsObservableFuture<T> lastWhere(
  1. bool test(
    1. T element
  2. {Object defaultValue(
    1. 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.


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