ShakeDetector.waitForStart constructor

ShakeDetector.waitForStart({
  1. required PhoneShakeCallback onPhoneShake,
  2. double shakeThresholdGravity = 2.7,
  3. int shakeSlopTimeMS = 500,
  4. int shakeCountResetTime = 3000,
  5. int minimumShakeCount = 1,
})

This constructor waits until startListening is called

Implementation

ShakeDetector.waitForStart({
  required this.onPhoneShake,
  this.shakeThresholdGravity = 2.7,
  this.shakeSlopTimeMS = 500,
  this.shakeCountResetTime = 3000,
  this.minimumShakeCount = 1,
});