linearVelocity abstract method

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

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

var linVel = await myMovementSensor.linearVelocity();

For more information, see Movement Sensor component.

Implementation

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