defaultHeadingStreamSource method

Stream<OrientationEvent> defaultHeadingStreamSource()

Create a heading stream which is used as default value of CurrentLocationLayer.headingStream.

Implementation

Stream<OrientationEvent> defaultHeadingStreamSource() {
  RotationSensor.samplingPeriod = SensorInterval.uiInterval;
  return RotationSensor.orientationStream;
}