linearAcceleration abstract method

Future<Vector3> linearAcceleration({
  1. Map<String, dynamic>? extra,
})

Get the current linear acceleration as a Vector3 with x, y, and z axes represented in mm/sec^2.

var linAccel = await myMovementSensor.linearAcceleration();

For more information, see Movement Sensor component.

Implementation

Future<Vector3> linearAcceleration({Map<String, dynamic>? extra});