getSafeModalContext function
Helper function to get safe context for modals This ensures modals work correctly when the plugin is used in other projects
Implementation
BuildContext? getSafeModalContext() {
try {
ChatController chatController = Get.find();
return chatController.safeContext;
} catch (e) {
return null;
}
}