whenn method
- bool predicate(
- T self
Special case when "there is no else", avoiding the curried invocation.
Implementation
T? whenn(bool Function(T self) predicate) => predicate(this) ? this : null;
Special case when "there is no else", avoiding the curried invocation.
T? whenn(bool Function(T self) predicate) => predicate(this) ? this : null;