swap method

Some<Option<T>> swap()

Implementation

@pragma('vm:prefer-inline')
Some<Option<T>> swap() {
  if (this is Some<Some<T>>) {
    return this as Some<Some<T>>;
  }
  return (this as None<Some<T>>).swap();
}