isActive property

bool get isActive

Whether the timer is active.

Returns true if either the initial delay timer or the repeating timer is active. This correctly reports activity during the initial delay period before the first tick.

Implementation

bool get isActive =>
    (_starter?.isActive ?? false) || (_timer?.isActive ?? false);