linearVelocity method
override
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
@override
Future<Vector3> linearVelocity({Map<String, dynamic>? extra}) async {
final request = GetLinearVelocityRequest()
..name = name
..extra = extra?.toStruct() ?? Struct();
final response = await client.getLinearVelocity(request);
return response.linearVelocity;
}