isEmpty property

bool get isEmpty
inherited

If true, the stream returned by read won't emit any bytes.

This may have false negatives, but it won't have false positives.

Implementation

bool get isEmpty => _body.contentLength == 0;