error property
Object
get
error
Implementation
Object get error {
if (!hasError) {
throw StateError('This snapshot does not have an error');
}
return _error!;
}
Object get error {
if (!hasError) {
throw StateError('This snapshot does not have an error');
}
return _error!;
}