isEmpty property
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;
If true
, the stream returned by read
won't emit any bytes.
This may have false negatives, but it won't have false positives.
bool get isEmpty => _body.contentLength == 0;