get method

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

Gets the reference to the underlying value.

Implementation

@override
Option<T> get() {
  final val = _cache[this] as T?;
  if (val == null) {
    return None;
  }
  return Some(val);
}