mapOrNull<U> method
U?
mapOrNull<U>(
- U transform(
- T
Returns a transformed value or null
Implementation
U? mapOrNull<U>(U Function(T) transform) => switch (this) {
Success(value: final v) => transform(v),
_ => null,
};