safeEmit method
Implementation
void safeEmit(String event, [Map<String, dynamic>? args]) {
try {
_emitter.emit(event, args);
} catch (error) {
logger.e(
'safeEmit() event listener threw an error [event:$event]:$error',
);
}
}