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, Type 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
- pointer → int
-
The id of the pointer. Each pointer on the screen will have a unique pointer id. [...]
final
- type → Type
-
The type of event, there are currently four valid types, PointerDownEvent, PointerMoveEvent, PointerUpEvent, and
PointerCancelEvent. [...]
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, 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
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited