hasError property

bool hasError

Returns whether this snapshot contains a non-null error value.

Implementation

bool get hasError => error != null;