stopListening method

void stopListening()

Stops listening to accelerometer events

Implementation

void stopListening() {
  if (streamSubscription != null) {
    streamSubscription!.cancel();
  }
}