value property
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;
}
Gets the Optional value.
Throws StateError if value is null.
T get value {
if (this._value == null) {
throw new StateError('value called on absent Optional.');
}
return _value;
}