UserAccelerometerEvent class
Like AccelerometerEvent, this is a discrete reading from an accelerometer and measures the velocity of the device. However, unlike AccelerometerEvent, this event does not include the effects of gravity.
Constructors
- UserAccelerometerEvent.new(double x, double y, double z)
-
Contructs an instance with the given
x
,y
, andz
values. -
UserAccelerometerEvent.fromList(List<
double> list)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- x → double
-
Acceleration force along the x axis (excluding gravity) measured in m/s^2.
final
- y → double
-
Acceleration force along the y axis (excluding gravity) measured in m/s^2.
final
- z → double
-
Acceleration force along the z axis (excluding gravity) measured in m/s^2.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited