endBurst method
- int serial
A explosão serial acabou: a animação dela já terminou.
Implementation
void endBurst(int serial) {
final bursts = state.shape.bursts;
if (!bursts.any((burst) => burst.serial == serial)) return;
emit(
state.copyWith(
shape: HoldShape(
hold: state.shape.hold,
emptying: state.shape.emptying,
bursts: [
for (final burst in bursts)
if (burst.serial != serial) burst,
],
),
),
);
}