ShakeDetector class

Constructors

ShakeDetector({required VoidCallback onPhoneShake, double shakeThresholdGravity = 15, int minTimeBetweenShakes = 160, int shakeCountResetTime = 1500, int minShakeCount = 2})

Properties

hashCode int
The hash code for this object.
no setterinherited
lastShakeTimestamp int
getter/setter pair
minShakeCount int
final
minTimeBetweenShakes int
final
onPhoneShake VoidCallback
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shakeCount int
getter/setter pair
shakeCountResetTime int
final
shakeThresholdGravity double
final
streamSubscription StreamSubscription
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startListening() → void
Starts listening to accerelometer events
stopListening() → void
Stops listening to accelerometer events
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited