closeWhenIdle property

bool closeWhenIdle

Whether the batcher will close once idle or not.

Implementation

bool get closeWhenIdle => _closeWhenIdle;
void closeWhenIdle=(bool value)

Implementation

set closeWhenIdle(bool value) {
  if (value && _resultCount == _totalResultCount) close();
  _closeWhenIdle = value;
}