getBatchDepth function

int getBatchDepth()

Gets the current batch depth.

This returns the current batch depth, which is incremented when a batch operation is started and decremented when it is completed.

Implementation

@pragma('vm:prefer-inline')
@pragma('wasm:prefer-inline')
@pragma('dart2js:prefer-inline')
int getBatchDepth() => batchDepth;