send method

  1. @override
Future<bool> send(
  1. ReportEvent event
)
override

Sends a ReportEvent to the remote/system of choice.

Returns true iff the event was successfully delivered.

Implementation

@override
Future<bool> send(ReportEvent event) async {
  var anySuccess = false;

  for (final r in reporters) {
    try {
      final ok = await r.send(event);
      anySuccess = anySuccess || ok;
    } catch (_) {
      // Intentionally swallow to let other reporters run.
    }
  }

  return anySuccess;
}