Returns whether this snapshot contains a non-null error value.
This is always true if the asynchronous computation's last result was failure.
bool get hasError => error != null;