flatMap<U> method

  1. @useResult
U? flatMap<U>(
  1. U? f(
    1. T
    )
)

Applies a transformation f that may return null to the value if it is not null.

Implementation

@useResult
U? flatMap<U>(U? Function(T) f) => this != null ? f(this as T) : null;