stopGyroscope method

  1. @override
Future<void> stopGyroscope()
override

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');
    }
  }
}