orientation abstract method

Future<Orientation> orientation({
  1. Map<String, dynamic>? extra,
})

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});