ComplexEventHandler class

An EventHandler that cannot be expressed as a SimpleEventHandler.

This might be a be a single method call with multiple arguments, or an argument other than the $event parameter. It may be an expression other than a method call. It may also be multiple statements that have been merged together.

In generated code, this requires a generated method to wrap the event handlers.

Inheritance

Constructors

ComplexEventHandler.forAst(ASTWithSource handler, SourceSpan? sourceSpan, {ProviderSource? directiveInstance})

Properties

handlers List<EventHandler?>
final
hashCode int
The hash code for this object.
no setterinherited
isBool bool
finalinherited
isDouble bool
finalinherited
isImmutable bool
finalinherited
isInt bool
finalinherited
isNullable bool
finalinherited
isNumber bool
finalinherited
isString bool
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

accept<R, C, CO extends C>(BindingSourceVisitor<R, C> visitor, [CO? context]) → R
override
merge(EventHandler? handler) EventHandler
Returns an EventHandler that merges this and handler together.
override
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