isEventType method
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";
}
}