isTimeoutError property

bool get isTimeoutError

Checks if the status code represents a timeout error

Implementation

bool get isTimeoutError => this == 408 || this == 504;