angularVelocity method
override
Get the current angular velocity as a Vector3 with x, y, and z axes represented in radians per second.
var angVel = await myMovementSensor.angularVelocity();
For more information, see Movement Sensor component.
Implementation
@override
Future<Vector3> angularVelocity({Map<String, dynamic>? extra}) async {
final request = GetAngularVelocityRequest()
..name = name
..extra = extra?.toStruct() ?? Struct();
final response = await client.getAngularVelocity(request);
return response.angularVelocity;
}