hasError property
bool
hasError
Check if the AsyncSnapshot has an error.
Implementation
bool get hasError => connectionState == ConnectionState.done && error != null;
Check if the AsyncSnapshot has an error.
bool get hasError => connectionState == ConnectionState.done && error != null;