removedFromPanelists function
- RemovedFromPanelistsOptions options
Handles the removedFromPanelists socket event. Called when current user is removed from panelists.
Implementation
Future<void> removedFromPanelists(RemovedFromPanelistsOptions options) async {
try {
final data = options.data;
options.showAlert?.call(
message: data.message,
type: 'info',
duration: 3000,
);
} catch (e) {
debugPrint('Error handling removedFromPanelists: $e');
}
}