addedAsPanelist function
- AddedAsPanelistOptions options
Handles the addedAsPanelist socket event. Called when current user is added as a panelist.
Implementation
Future<void> addedAsPanelist(AddedAsPanelistOptions options) async {
try {
final data = options.data;
options.showAlert?.call(
message: data.message,
type: 'success',
duration: 3000,
);
} catch (e) {
debugPrint('Error handling addedAsPanelist: $e');
}
}