get method

  1. @override
Option<T> get()
override

Gets the reference to the underlying value.

Implementation

@override
Option<T> get() {
  if (_val == null) {
    return None;
  }
  return Some(_val!);
}