compassHeading abstract method
Get the current compass heading in degrees.
var compassHeading = await myMovementSensor.compassHeading();
For more information, see Movement Sensor component.
Implementation
Future<double> compassHeading({Map<String, dynamic>? extra});