value property

T get value

Gets the Optional value.

Throws StateError if value is null.

Implementation

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