ShakeDetector constructor

ShakeDetector({
  1. double shakeThresholdGravity = 2.7,
  2. int shakeCooldownMs = 1000,
})

Implementation

ShakeDetector({
  this.shakeThresholdGravity = 2.7,
  this.shakeCooldownMs = 1000,
});