someOr method

  1. @override
Some<T> someOr(
  1. Option<T> other
)
override

Returns this if it's Some, otherwise returns the other Option.

Implementation

@override
@pragma('vm:prefer-inline')
Some<T> someOr(Option<T> other) => this;