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() {
  CometChat.addGroupListener(groupSDKListenerID, this);
  CometChatGroupEvents.addGroupsListener(groupUIListenerID, this);
  if (hideUserPresence == false) {
    //Adding listener when presence is needed
    CometChat.addUserListener(userSDKListenerID, this);
  }
  initializeInternalDependencies();
  super.onInit();
}