when2 method

_When<T> when2(
  1. bool predicate(
    1. T self
    )
)

Returns an instance of _When that allows further processing.

Implementation

// ignore: library_private_types_in_public_api, should be used internally
_When<T> when2(bool Function(T self) predicate) => _When(this, predicate);