SimpleEventHandler class
An EventHandler that is a single method call with 0 or 1 arguments.
The single argument is the $event
emitted by the event source.
In generated code, this can be expressed as a "tear-off" expression.
- Inheritance
-
- Object
- EventHandler
- SimpleEventHandler
Constructors
- SimpleEventHandler(ASTWithSource handler, SourceSpan? sourceSpan, {ProviderSource? directiveInstance, int? numArgs})
Properties
- directiveInstance → ProviderSource?
-
final
- handler → ASTWithSource
-
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
- numArgs → int?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceSpan → SourceSpan?
-
final
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