value property
T
value
Stored value
Implementation
T get value {
if (_value == null || _value is! T) {
if (_error != null) {
throw Exception(error.toString());
}
throw Exception(
'''Maybe<$T> not contains value of type $T. Before use [value] getter - check if value exist through [hasValue] getter''');
}
return _value as T;
}