partition method

PartitionedStream<T> partition(
  1. bool predicate(
    1. T event
    )
)

Splits the this Observable into two, one with values that satisfy a predicate, and another with values that don't satisfy the predicate.

Implementation

PartitionedStream<T> partition(bool Function(T event) predicate) =>
    ParititonUtil.parititon(this, predicate);