TypedEventHandler<T extends DiagnosticEvent> class
abstract
A DiagnosticEventHandler that handles events of a specific type.
It will filter on the event type and ignore other events.
- Implemented types
- Implementers
Constructors
- TypedEventHandler.new()
-
Creates a new TypedEventHandler.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
handleEvent(
DiagnosticEvent event, {required OriginSpace space, required DiagnosticEventContext context}) → void -
Implements a filter on the handled event type.
Should not be overridden by subclasses,
override handleTypedEvent instead.
override
-
handleTypedEvent(
T event, {required OriginSpace space, required DiagnosticEventContext context}) → void - Handles a typed event, called when the event type matches. To be implemented by subclasses.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited