linearAcceleration abstract method
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});