startListeningShake method

dynamic startListeningShake(
  1. double detectionThreshold
)

Subscribes to the shake event

Implementation

startListeningShake(double detectionThreshold) {
  _detectionThreshold = detectionThreshold;
  if (_accelerometerStream == null) {
    _listenForShake();
    _subscribeForReset();
  }
}