heartBeat static method

Widget heartBeat({
  1. required Color color,
  2. required double size,
  3. Key? key,
})

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);
}