getOrElse<T> method

Future<T> getOrElse<T>(
  1. T defaultVal
)

Implementation

Future<T> getOrElse<T>(T defaultVal) =>
    fold(() => defaultVal, (some) => some! as T);