ShakeDetector.autoStart constructor
ShakeDetector.autoStart({
- required PhoneShakeCallback onPhoneShake,
- double shakeThresholdGravity = 2.7,
- int shakeSlopTimeMS = 500,
- int shakeCountResetTime = 3000,
- int minimumShakeCount = 1,
This constructor automatically calls startListening and starts detection and callbacks.
Implementation
ShakeDetector.autoStart({
required this.onPhoneShake,
this.shakeThresholdGravity = 2.7,
this.shakeSlopTimeMS = 500,
this.shakeCountResetTime = 3000,
this.minimumShakeCount = 1,
}) {
startListening();
}