stopListening method
void
stopListening()
Stops listening to accelerometer events
Implementation
void stopListening() {
if (streamSubscription != null) {
streamSubscription!.cancel();
}
}
Stops listening to accelerometer events
void stopListening() {
if (streamSubscription != null) {
streamSubscription!.cancel();
}
}