isOk property

bool isOk

isOk is true when statusCode is between 200 and 299.

Implementation

bool get isOk => !hasError;