nonPeriodicTimerCount property Null safety

int nonPeriodicTimerCount

The number of active non-periodic timers created within a call to run or fakeAsync.

Implementation

int get nonPeriodicTimerCount =>
    _timers.where((timer) => !timer.isPeriodic).length;