gyroscope method
A broadcast stream of events from the device gyroscope.
Implementation
Stream<GyroscopeEvent> gyroscope({
Duration samplingPeriod = SensorInterval.normalInterval,
}) {
_gyroscopeEvents ??= _gyroscopeEventChannel.receiveBroadcastStream().map((dynamic event) => GyroscopeEvent.fromList(event.cast<double>()));
_setSensorUpdateInterval(SensorType.gyroscope,samplingPeriod);
return _gyroscopeEvents!;
}