Moving class

Wrapper for each user widget that moves. Each user widget must be wrapped in a Container().

Constructors

Moving({required Container child, required double width, required double height})

Properties

bottom double
no setter
child Container
User widget
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
height double
Height of widget; used for collision detection
getter/setter pair
id String?
unique of each moving widget; only used for logging
getter/setter pair
left double
x-position in field
getter/setter pair
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
top double
y-position in field
getter/setter pair
width double
Width of widget; used for collision detection
getter/setter pair
xdelta double
amount of horizontal distance moved per tick; can be negative
getter/setter pair
ydelta double
amount of veritical distance moved per tick; can be negative
getter/setter pair

Methods

hit(Moving d) bool
collision detection with another user widget
hitx(Moving d) bool
collision with horizontal movement
hity(Moving d) bool
collision with vertical movement
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDump() String
toString() String
A string representation of this object.
override

Operators

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