isSuccess property

bool get isSuccess

Returns true if the request completed successfully.

Unlike previous versions, this no longer depends on data being non-null, so successful responses with an empty body are reported correctly.

Implementation

bool get isSuccess => _isSuccess;