magnetometerEventStream function

  1. @override
Stream<MagnetometerEvent> magnetometerEventStream({
  1. Duration samplingPeriod = SensorInterval.normalInterval,
})

Returns a broadcast stream of events from the device magnetometer at the given sampling frequency.

Implementation

@override
Stream<MagnetometerEvent> magnetometerEventStream({
  Duration samplingPeriod = SensorInterval.normalInterval,
}) {
  return _sensors.magnetometerEventStream(samplingPeriod: samplingPeriod);
}