orientation method
override
Get the current orientation as an Orientation.
var orientation = await myMovementSensor.orientation();
For more information, see Movement Sensor component.
Implementation
@override
Future<Orientation> orientation({Map<String, dynamic>? extra}) async {
final request = GetOrientationRequest()
..name = name
..extra = extra?.toStruct() ?? Struct();
final response = await client.getOrientation(request);
return response.orientation;
}