orientation abstract method
Get the current orientation as an Orientation.
var orientation = await myMovementSensor.orientation();
For more information, see Movement Sensor component.
Implementation
Future<Orientation> orientation({Map<String, dynamic>? extra});