mapIf<U> method
Maps over the value if it is not null and satisfies the given predicate.
Implementation
@useResult
U? mapIf<U>(bool Function(T) p, U Function(T) f) =>
this != null && p(this as T) ? f(this as T) : null;
Maps over the value if it is not null and satisfies the given predicate.
@useResult
U? mapIf<U>(bool Function(T) p, U Function(T) f) =>
this != null && p(this as T) ? f(this as T) : null;