onInit method
Called immediately after the widget is allocated in memory. You might use this to initialize something for the controller.
Implementation
@override
void onInit() {
CometChatMessageEvents.addMessagesListener(messageUIListenerID, this);
CometChatGroupEvents.addGroupsListener(groupUIListenerID, this);
if (!(disableUsersPresence ?? false)) {
CometChat.addUserListener(userSDKListenerID, this);
}
CometChat.addGroupListener(groupSDKListenerID, this);
CometChatUserEvents.addUsersListener(_uiUserListener, this);
CometChatCallEvents.addCallEventsListener(_conversationListenerId, this);
CometChat.addCallListener(_conversationListenerId, this);
CometChat.addConnectionListener(_conversationListenerId, this);
initializeTextFormatters();
super.onInit();
}