get method
T?
get()
Returns the value (only if already loaded).
StateError in case the value is not loaded yet.
Implementation
T? get() {
if (!isLoaded) throw StateError('Not loaded yet!');
return _value;
}
Returns the value (only if already loaded).
StateError in case the value is not loaded yet.
T? get() {
if (!isLoaded) throw StateError('Not loaded yet!');
return _value;
}