getBatchDepth function

int getBatchDepth()

Gets the current batch depth.

A depth greater than 0 indicates that updates are being batched and effects are deferred.

Returns the current batch depth.

Implementation

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