matchesEventOrTransactionId method

bool matchesEventOrTransactionId(
  1. String? search
)

returns if this event matches the passed event or transaction id

Implementation

bool matchesEventOrTransactionId(String? search) {
  if (search == null) {
    return false;
  }
  if (eventId == search) {
    return true;
  }
  return unsigned?['transaction_id'] == search;
}