takeUnless method

T? takeUnless(
  1. bool predicament(
    1. T it
    )
)

Implementation

T? takeUnless(final bool Function(T it) predicament) =>
    !predicament(this) ? this : null;