stopSensors method

void stopSensors({
  1. required StreamSubscription gyroSubscription,
  2. required StreamSubscription accelSubscription,
})

Implementation

void stopSensors({
  required StreamSubscription gyroSubscription,
  required StreamSubscription accelSubscription,
}) {
  gyroSubscription.cancel();
  accelSubscription.cancel();
}