shapesFor static method
- ConfettiStyle style
Shape list for style — safe for ConfettiCustomization.shapeMix.
Implementation
static List<ParticleShape> shapesFor(ConfettiStyle style) {
switch (style) {
case ConfettiStyle.circles:
return const [ParticleShape.circle];
case ConfettiStyle.stars:
return const [ParticleShape.star];
case ConfettiStyle.symbols:
return const [ParticleShape.emoji];
case ConfettiStyle.streamers:
return const [ParticleShape.ribbon];
case ConfettiStyle.squares:
return const [ParticleShape.square];
}
}