withShakeAnimation method

Widget withShakeAnimation(
  1. dynamic onInit(
    1. AnimationController
    ), {
  2. Duration animationDuration = const Duration(milliseconds: 370),
  3. double animationWidth = 10,
})

Implementation

Widget withShakeAnimation(
  Function(AnimationController) onInit, {
  Duration animationDuration = const Duration(milliseconds: 370),
  double animationWidth = 10,
}) {
  return ShakeAnimation(
    onInit: onInit,
    animationDuration: animationDuration,
    animationWidth: animationWidth,
    child: this,
  );
}