Returns res if the result is an Err, otherwise returns this.
res
Err
this
@override Result<T, F> or<F extends Object>(Result<T, F> res) => res;