isAuthError property

bool get isAuthError

Whether this is an authentication or authorization error.

Implementation

bool get isAuthError =>
    type == ApiErrorType.authenticationError ||
    type == ApiErrorType.permissionDenied;