compassHeading abstract method

Future<double> compassHeading({
  1. Map<String, dynamic>? extra,
})

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