isOk property

bool get isOk

isOk is true when statusCode is between 200 and 299.

Implementation

bool get isOk => !hasError;