exhausted method

  1. @override
Future<bool> exhausted()
override

Returns true if there are no more bytes in this source.

Implementation

@override
Future<bool> exhausted() async {
  checkState(!_closed, 'closed');
  return _buffer.exhausted() && await _source.read(_buffer, kBlockSize) == 0;
}