or method

  1. @override
Result<T, E> or(
  1. Result<T, E> res
)
override

Returns res if the result is an Err, otherwise returns this.

Implementation

@override
Result<T, E> or(Result<T, E> res) => res;