gyroscopeEventStream method

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

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

This method always returning the same stream. If this method is called again, the sampling period of the stream will be update. All previous listener will also be affected.

Implementation

@override
Stream<GyroscopeEvent> gyroscopeEventStream({
  Duration samplingPeriod = SensorInterval.normalInterval,
}) {
  return _platform.gyroscopeEventStream(samplingPeriod: samplingPeriod);
}