isActive property

bool isActive

Whether currently it has a running or scheduled code that will be executed in the current turn.

Implementation

bool get isActive => _runningCount > 0 || _microtaskCount > 0;