getBatchDepth function

int getBatchDepth()

Returns the current nested batch depth.

Each startBatch increments this counter and endBatch decrements it. Queued effects flush only when the depth returns to zero.

Implementation

int getBatchDepth() => batchDepth;