stopGyroscope method
Stops streaming gyroscope data from the smartphone.
Implementation
@override
Future<void> stopGyroscope() async {
try {
// await _gyroStream?.drain();
_gyroStream = null;
} catch (e) {
if (kDebugMode) {
print('Error stopping gyroscope: $e');
}
}
}