magnetometerEventStream function
Stream<MagnetometerEvent>
magnetometerEventStream({
- 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);
}