fuseTimer function
Adds a Flame Timer
to a Fuse component.
Implementation
Timer fuseTimer(
double limit,
FuseTimerFn fn, {
bool repeat = false,
bool autoStart = true,
}) {
final timer = Timer(
limit,
onTick: fn,
repeat: repeat,
autoStart: autoStart,
);
fuseUpdate(timer.update);
return timer;
}