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(Point boxPosition, Type type, int pointer)
-
Creates a new SpriteBoxEvent, typically this is done internally inside the SpriteBox.
Properties
- boxPosition → Point
-
The position of the event in box coordinates.
read-only - hashCode → int
-
Get a hash code for this object.
read-only, inherited - pointer → int
-
The id of the pointer. Each pointer on the screen will have a unique pointer id.
read-only - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited - type → Type
-
The type of event, there are currently four valid types, PointerDownEvent, PointerMoveEvent, PointerUpEvent, and PointerCancelEvent.
read-only
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited