AccelerometerEvent class Null safety

Discrete reading from an accelerometer. Accelerometers measure the velocity of the device. Note that these readings include the effects of gravity. Put simply, you can use accelerometer readings to tell if the device is moving in a particular direction.

Constructors

AccelerometerEvent(double x, double y, double z)
Contructs an instance with the given x, y, and z values.

Properties

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
x double
Acceleration force along the x axis (including gravity) measured in m/s^2. [...]
final
y double
Acceleration force along the y axis (including gravity) measured in m/s^2. [...]
final
z double
Acceleration force along the z axis (including gravity) measured in m/s^2. [...]
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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