valueOr method

T valueOr(
  1. T fallback()
)

Implementation

T valueOr(T Function() fallback) => iif(
      some: (value) => value,
      none: fallback,
    );