flushPendingSpatialUpdates method
void
flushPendingSpatialUpdates()
Flushes all pending spatial index updates synchronously.
This method should be called after drag operations end to ensure the spatial index is up-to-date before performing hit tests. Normally the flush happens via a MobX reaction, but that's asynchronous. This method allows synchronous flushing when immediate hit testing is needed.
Implementation
void flushPendingSpatialUpdates() {
_flushPendingSpatialUpdates();
}