withShakeAnimation method
Widget
withShakeAnimation(})
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,
);
}