deleteStatus method

void deleteStatus()

A method to manually clear the content and state of the floating chat component when you exit the page where the floating chat component is located.

This method should be called when the floating chat component is destroyed to ensure that all resources are properly released and no memory leaks occur.

Note: If you are using the Getx state management library for navigation to the page where the floating chat component is located, you can ignore this step.

Implementation

void deleteStatus() {
  Get.delete<FloatChatController>(force: true);
  Get.delete<FloatChatStore>(force: true);
}