AccelerometerData class
Represents accelerometer data from device sensors
Constructors
- AccelerometerData.new({required double x, required double y, required double z, required DateTime timestamp})
-
Creates an AccelerometerData instance
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
Timestamp when the data was captured
final
- x → double
-
Acceleration force along the x axis (including gravity) in m/s²
final
- y → double
-
Acceleration force along the y axis (including gravity) in m/s²
final
- z → double
-
Acceleration force along the z axis (including gravity) in m/s²
final
Methods
-
copyWith(
{double? x, double? y, double? z, DateTime? timestamp}) → AccelerometerData - Creates a copy of this AccelerometerData with the given fields replaced
-
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.
override