takeUnless method

T? takeUnless(
  1. bool predicate(
    1. T
    )
)

Implementation

T? takeUnless(bool Function(T) predicate) => (!predicate(this)) ? this : null;