performBatch method
void
performBatch(
- void updates()
Perform several selection updates while emitting at most one notification.
Implementation
void performBatch(void Function() updates) {
if (_batching) {
updates();
return;
}
_batching = true;
try {
updates();
} finally {
_batching = false;
if (_dirty) {
_dirty = false;
notifyListeners();
}
}
}