isBatching property

bool get isBatching

Whether execution is currently inside a batch block.

Implementation

static bool get isBatching => _batchDepth > 0;