mapOrElse<U> method

U mapOrElse<U>(
  1. U defaultFn(),
  2. U f(
    1. T
    )
)

Implementation

@pragma("vm:prefer-inline")
U mapOrElse<U>(U Function() defaultFn, U Function(T) f) {
  return f(v);
}