AccelerometerEvent class

Represents an event containing accelerometer sensor data.

Constructors

AccelerometerEvent.new(double x, double y, double z)
Constructor to initialize accelerometer event values.

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 (including gravity) measured in m/s². (X-axis: Left and right movement)
final
y double
Acceleration force along the y-axis (including gravity) measured in m/s². (Y-axis: Forward and backward movement)
final
z double
Acceleration force along the z-axis (including gravity) measured in m/s². (Z-axis: Up and down movement)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns a string representation of the accelerometer event.
override

Operators

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