shakeHorizontal method
Wraps the widget with a horizontal shake animation.
Example:
Text('Error').shakeHorizontal();
Implementation
Widget shakeHorizontal({
Duration duration = const Duration(milliseconds: 500),
double intensity = 10.0,
}) {
return _ShakeHorizontalWidget(
duration: duration,
intensity: intensity,
child: this,
);
}