FlutterShakePlugin constructor

FlutterShakePlugin({@required PhoneShakeCallback onPhoneShaken, int shakeTimeMS: 500, double shakeThresholdGravity: 3.25, bool shouldVibrate: true, int vibrateDuration: 500 })

This constructor waits until startListening is called

Implementation

FlutterShakePlugin({
  @required this.onPhoneShaken,
  this.shakeTimeMS = 500,
  this.shakeThresholdGravity = 3.25,
  this.shouldVibrate = true,
  this.vibrateDuration = 500,
}) : assert(onPhoneShaken != null);