hasError property Null safety
Returns whether this snapshot contains a non-null error value.
This is always true if the asynchronous computation's last result was failure.
Implementation
bool get hasError => error != null;
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;