error property
ReplyError
get
error
Returns the error if this is an error reply.
Throws StateError if this is an ok reply.
Implementation
ReplyError get error {
if (_error == null) {
throw StateError('Cannot access error on an ok reply');
}
return _error;
}