valueOr method

t valueOr(
  1. t orElse
)
inherited

In case there is a value, retrieve it, otherwise return the orElse value.

Implementation

T valueOr(T orElse) => valueOrGet(() => orElse);