value property

T value

Gets the Optional value.

Throws StateError if value is null.

Implementation

T get value {
  if (this._value == null) {
    throw new StateError('value called on absent Optional.');
  }
  return _value;
}