SpriteBoxEvent class

An event that is passed down the node tree when pointer events occur. The SpriteBoxEvent is typically handled in the handleEvent method of Node.

Constructors

SpriteBoxEvent(Offset boxPosition, PointerEventType type, int pointer)
Creates a new SpriteBoxEvent, typically this is done internally inside the SpriteBox.

Properties

boxPosition Offset
The position of the event in box coordinates.
final
hashCode int
The hash code for this object.
no setterinherited
pointer int
The id of the pointer. Each pointer on the screen will have a unique pointer id.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type PointerEventType
The type of event, there are currently four valid types, PointerDownEvent, PointerMoveEvent, PointerUpEvent, and PointerCancelEvent.
final

Methods

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