hasError property

bool hasError

Check if the AsyncSnapshot has an error.

Implementation

bool get hasError => connectionState == ConnectionState.done && error != null;