native method

Object? native()

Returns the payload of whichever variant is present.

Implementation

Object? native() => switch (this) {
  Ok<T>(:final value) => value,
  Err<T>(:final problem) => problem,
};