map<U> method
- @useResult
- U f(
- T
Applies a transformation f
to the value if it is not null
.
Implementation
@useResult
U? map<U>(U Function(T) f) => this != null ? f(this as T) : null;
Applies a transformation f
to the value if it is not null
.
@useResult
U? map<U>(U Function(T) f) => this != null ? f(this as T) : null;