disposeObjectEvent method

void disposeObjectEvent(
  1. Map<int, Map<String, EBusItem>> map,
  2. dynamic registerObject, {
  3. String? action,
})

Implementation

void disposeObjectEvent(Map<int, Map<String, EBusItem>> map, dynamic registerObject, {String? action}) {
  if (registerObject == null || action.isEmptyString) {
    return;
  }
  var registerHashcode = registerObject.hashCode;
  var busList = map[registerHashcode];
  if (busList == null) {
    return;
  }
  busList.remove(action);
}