valueOrElse method
In case there is a value, retrieve it, otherwise return the orElse
value.
Implementation
@Deprecated('Use valueOr instead')
T valueOrElse(T orElse) => valueOrGet(() => orElse);
In case there is a value, retrieve it, otherwise return the orElse
value.
@Deprecated('Use valueOr instead')
T valueOrElse(T orElse) => valueOrGet(() => orElse);