isServerErrorCode property

bool get isServerErrorCode

Checks if the status code represents a server error (5xx)

Implementation

bool get isServerErrorCode => this != null && this! >= 500 && this! < 600;