matches<S extends Event> method
bool
matches<S extends Event>({
- String? type,
- EventCallback<
S> ? callback, - bool? protected,
- 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);