wobble method

Widget wobble({
  1. Duration duration = const Duration(milliseconds: 1000),
  2. double angle = 0.1,
})

Wraps the widget with a wobble animation.

Example:

Icon(Icons.cake).wobble();

Implementation

Widget wobble({
  Duration duration = const Duration(milliseconds: 1000),
  double angle = 0.1,
}) {
  return _WobbleWidget(
    duration: duration,
    angle: angle,
    child: this,
  );
}