tick method
Called each time there is an update from the ticker on the AnimatedBackground
The implementation must return true if there is a need to repaint and false otherwise.
Implementation
@override
bool tick(double delta, Duration elapsed) {
if (!isInitialized) return false;
for (var bubble in bubbles!) {
bubble.radius = bubble.radius! +
delta * (bubble.popping ? options.popRate : options.growthRate);
if (bubble.radius! >= bubble.targetRadius) {
if (bubble.popping)
_initBubble(bubble);
else
_popBubble(bubble, false);
}
}
return true;
}