orElse method

T orElse(
  1. T other
)

Returns the value or a fallback when empty.

Implementation

T orElse(T other) => _value ?? other;