newtonSwing static method
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);
}