heartBeat static method
One ring emerge from the center and scale up until touches the outer ring. Then the outer ring expand a bit then come back to normal. Required color is applied to both rings.
Implementation
static Widget heartBeat({
required Color color,
required double size,
Key? key,
}) {
return HeartBeat(color: color, size: size, key: key);
}