post method
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);
}
Post message onto a bus with id
.
If the id is not defined, the function exits by returning.
void post(String id, dynamic data) {
if (!_buses.containsKey(id)) return;
_buses[id]!.add(data);
}