isNetworkError property

bool get isNetworkError

Whether this is a network-related error.

Implementation

bool get isNetworkError => code == 'network_error' || code == 'timeout';