post method

void post(
  1. String id,
  2. dynamic data
)

Post message onto a bus with id.

If the id is not defined, the function exits by returning.

Implementation

void post(String id, dynamic data) {
  if (!_buses.containsKey(id)) return;

  _buses[id]!.add(data);
}