valueOrElse method

  1. @Deprecated('Use valueOr instead')
t valueOrElse(
  1. t orElse
)
inherited

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

Implementation

@Deprecated('Use valueOr instead')
T valueOrElse(T orElse) => valueOrGet(() => orElse);