Time.infinite constructor

const Time.infinite()

In case of the Effect widget, it might be useful to pass infinite time. This can be done with Time.infinite().
Otherwise when a finite time is expected, an error is thrown.

Implementation

const Time.infinite()
    : isInfinite = true,
      ticks = -1;