onTick method
void
onTick()
Called everytime the timer reached a tick. The default implementation calls the closure received on the constructor and can be overriden to add custom logic.
Implementation
void onTick() {
_onTick?.call();
}