safeEmit method

void safeEmit(
  1. String event, [
  2. Map<String, dynamic>? args
])
inherited

Implementation

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