ShakeWidget constructor

ShakeWidget({
  1. @required Widget? child,
  2. Axis axisDirection = Axis.horizontal,
  3. Duration duration = const Duration(milliseconds: 500),
  4. @required ShakeController? shakeController,
  5. bool vibrate = false,
})

Implementation

ShakeWidget(
    {@required this.child,
    this.axisDirection = Axis.horizontal,
    this.duration = const Duration(milliseconds: 500),
    @required this.shakeController,
    this.vibrate = false}):assert(shakeController!=null);