takeUnless method

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

Implementation

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