isSuccess property

bool get isSuccess

Whether the status code is in the 2xx range.

Implementation

bool get isSuccess => statusCode >= 200 && statusCode < 300;