getOrNull method

T? getOrNull()

Implementation

T? getOrNull() => switch (this) {
      Ok(value: final v) => v,
      Error() => null,
      Cancel() => null,
    };