shake method
Applies a ShakeEffect to a Widget.
frequency
is the frequency of the shake in hertz.
offset
is the offset of the shake.
rotation
is the rotation of the shake.
Implementation
Widget shake({
double frequency = 8,
Offset offset = const Offset(5, 0),
double rotation = pi / 36,
}) {
return EffectWidget(
end: ShakeEffect(
frequency: frequency,
offset: offset,
rotation: rotation,
),
child: this,
);
}