swap method

Result<Some<T>> swap()

Implementation

@pragma('vm:prefer-inline')
Result<Some<T>> swap() => unwrap().map((e) => Some(e));