alternar method

void alternar()

Implementation

void alternar() {
  if (isClosed) return;
  emit(state.copyWith(aberto: !state.aberto));
}