onAddChatEvent method

dynamic onAddChatEvent(
  1. AddChatEvent event,
  2. dynamic emit
)

Implementation

onAddChatEvent(AddChatEvent event, emit) {
  emit(AddChatState(event.message, event.roomId, event.type));
}