endEmptying method

void endEmptying(
  1. int serial
)

O esvaziar de serial acabou (o controlador chegou a zero).

Implementation

void endEmptying(int serial) {
  if (state.shape.emptying?.serial != serial) return;
  emit(
    state.copyWith(
      shape: HoldShape(hold: state.shape.hold, bursts: state.shape.bursts),
    ),
  );
}