newtonSwing static method

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

An equilateral triangle has two side and a dot in the empty side. The dot moves those two sides also change position. Required color is applied to two sides and the dot.

Implementation

static Widget newtonSwing({
  required Color color,
  required double size,
  Key? key,
}) {
  return NewtonSwing(color: color, size: size, key: key);
}