applyUpdates method
Implementation
void applyUpdates([int maxErrors = 0]) {
checkBrowseMode();
var failures = 0;
while (_pendingUpdates.isNotEmpty) {
final upd = _pendingUpdates.first;
try {
_applyingUpdate = upd;
applyRecUpdate(upd.kind);
_pendingUpdates.removeAt(0);
_changeCount = _pendingUpdates.length;
} catch (_) {
failures++;
if (maxErrors >= 0 && failures > maxErrors) rethrow;
_pendingUpdates.removeAt(0);
} finally {
_applyingUpdate = null;
}
}
}