generateBubbles method
Generates an amount of bubbles and initializes them.
This can be used to generate the initial bubbles or new bubbles when the options change
Implementation
@protected
List<Bubble> generateBubbles(int num) {
return List<Bubble>.generate(num, (_) {
Bubble bubble = Bubble();
_initBubble(bubble);
return bubble;
});
}