or method

Maybe<T>? or(
  1. Maybe<T>? other
)

Returns this if this contains a value, otherwise returns other

Implementation

Maybe<T> or(Maybe<T> other) {
  if (this == null) return other;
  return this;
}