send<T> abstract method

Future? send<T>(
  1. T data, {
  2. String? path,
  3. String? fragment,
  4. String? target,
  5. Map<String, String>? arguments,
})

Sends an event to the bus. If a handler exists for the topic, it will be called. Returns a Future that completes with the result if EventDTO.completer was called by the handler.

Implementation

Future<dynamic>? send<T>(
  T data, {
  String? path,
  String? fragment,
  String? target,
  Map<String, String>? arguments,
});