value property

Option<T> value

Implementation

Option<T> get value {
  if (this == null) {
    return none();
  }

  return some(this as T);
}