Timer constructor

Timer(
  1. String name, {
  2. required List<Widget> children,
  3. required Time ticks,
  4. String path = 'timers',
  5. bool infinite = true,
})

A Timer is very similar to a Timeout, but instead of delaying the code it is run over and over again always delayed by the ticks.
In the end it creates a loop with slower tick speed as 20t/s to perform some operations more performant.

Implementation

Timer(
  this.name, {
  required this.children,
  required this.ticks,
  this.path = 'timers',
  this.infinite = true,
}) : _stop = false;