isEventType method

bool isEventType(
  1. dynamic type
)

Implementation

bool isEventType(dynamic type) {
  if (type is Iterable) {
    final set = type.mapToString().toSet();
    return set.contains(this.pushEventsBody?.eventType);
  } else {
    return this.pushEventsBody?.eventType == "$type";
  }
}