pulse method
Wraps the widget with a pulse animation.
Example:
Icon(Icons.favorite).pulse();
Implementation
Widget pulse({
Duration duration = const Duration(milliseconds: 1000),
double minScale = 0.95,
double maxScale = 1.05,
}) {
return _PulseWidget(
duration: duration,
minScale: minScale,
maxScale: maxScale,
child: this,
);
}