TapCancelEvent class

The event propagated through the Flame engine when a tap on a component is cancelled.

This event may occur for several reasons, such as:

  • a tap was converted into a drag event (for a game where drag events are enabled);
  • a tap was cancelled on the game widget itself -- for example if another app came into the foreground, or device turned off, etc;
  • a tap was cancelled on a particular component because that component has moved away from the point of contact.

The TapCancelEvent will only occur if there was a previous TapDownEvent.

Constructors

TapCancelEvent(int pointerId)

Properties

continuePropagation bool
If this flag is false (default), the event will be delivered to the first component that can handle it. If that component sets this flag to true, the event will propagate further down the component tree to other eligible components.
getter/setter pairinherited
handled bool
Flag that can be used to indicate that the event was handled by one of the components.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
pointerId int
The id of the event that has been cancelled. This id corresponds to the id of the previous TapDownEvent.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deliverToComponents<T extends Component>(Component rootComponent, void eventHandler(T component)) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited