native method
Returns the payload of whichever variant is present.
Implementation
Object? native() => switch (this) {
Ok<T>(:final value) => value,
Err<T>(:final problem) => problem,
};
Returns the payload of whichever variant is present.
Object? native() => switch (this) {
Ok<T>(:final value) => value,
Err<T>(:final problem) => problem,
};