takeUnless<T> method

Any? takeUnless<T>(
  1. bool predicate(
    1. Any
    )
)

Returns this value if it does not satisfies the given predicate or null, if it doesn't.

Implementation

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