mapOr<R> method

R mapOr<R>(
  1. R f(
    1. T
    ), {
  2. required R or,
})

Implementation

R mapOr<R>(R Function(T) f, {required R or}) {
  if (this == null) {
    return or;
  } else {
    return f(this!);
  }
}