matches<S extends Event> method

bool matches<S extends Event>({
  1. String? type,
  2. EventCallback<S>? callback,
  3. bool? protected,
  4. bool? once,
})

Implementation

bool matches<S extends Event>({
  String? type,
  EventCallback<S>? callback,
  bool? protected,
  bool? once,
}) =>
    isAssignable<S, T>() &&
    (this.type == null || this.type == type) &&
    (protected == null || this.protected == protected) &&
    (once == null || this.once == once);