sendEvent<T> static method
发送事件
event
事件
Implementation
static void sendEvent<T>(Event<T> event) {
log("EventBus sendEvent:$event");
if (!_eventBus.containsKey(event.key)) {
_eventBus.putIfAbsent(event.key, () => LiveData<Event<T>>(Event.empty(key: event.key)));
}
_eventBus[event.key]!.setValue(event);
}