resultOr method

T resultOr(
  1. T or
)

Returns the result a the specified value

Implementation

T resultOr(T or) => switch (this) {
      Success(value: final v) => v,
      _ => or,
    };