unwrapOr method

T unwrapOr(
  1. T opt
)
inherited

Returns the contained value or a default.

Implementation

T unwrapOr(T opt) => toNullable() ?? opt;