ShakeDetector.autoStart constructor

ShakeDetector.autoStart({
  1. PhoneShakeCallback? onPhoneShake,
  2. double shakeThresholdGravity = 2.7,
  3. int shakeSlopTimeMS = 500,
  4. int shakeCountResetTime = 3000,
})

This constructor automatically calls startListening and starts detection and callbacks.\

Implementation

ShakeDetector.autoStart(
    {this.onPhoneShake,
    this.shakeThresholdGravity = 2.7,
    this.shakeSlopTimeMS = 500,
    this.shakeCountResetTime = 3000}) {
  // startListening();
}