@pragma('vm:prefer-inline') Ok<Result<T>> swap() { if (this is Ok<Ok<T>>) { return this as Ok<Ok<T>>; } return (this as Err<Ok<T>>).swap(); }