barometerEventStream function

Stream<BarometerEvent> barometerEventStream({
  1. Duration samplingPeriod = SensorInterval.normalInterval,
})

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

Implementation

Stream<BarometerEvent> barometerEventStream({
  Duration samplingPeriod = SensorInterval.normalInterval,
}) {
  return _sensors.barometerEventStream(samplingPeriod: samplingPeriod);
}