enfileirar method
- IncomingPackage pacote
Põe o pacote na fila. Devolve true se nenhuma drenagem está em curso: quem
chamou tem de começá-la.
Implementation
bool enfileirar(IncomingPackage pacote) {
final comecar = !state.drenando;
emit(state.copyWith(fila: [...state.fila, pacote]));
return comecar;
}