EventDelta class
EventDelta converts deltas based events to two different values (game and global).
global: this is the raw value received by the event without any scale applied to it; this is always the same as local because Flutter doesn't apply any scaling. game: the scaled value with all the game transformations applied.
Constructors
- EventDelta(Game _game, Offset _delta)
Properties
- game → Vector2
-
Scaled value relative to the game transformations
latefinal
- global → Vector2
-
Raw value relative to the game transformations
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- viewport → Vector2
-
Scaled value relative to the game viewport only transformations (not
camera).
latefinal
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