Elbow constructor

Elbow({
  1. double width = 0.2,
  2. double angle = 0,
  3. Color color = WHITE,
})

Implementation

Elbow({
  double width = 0.2,
  double angle = 0,
  Color color = WHITE,
}) : super(color: color) {
  setPointsAsCorners([UP, UP + RIGHT, RIGHT]);
  setWidth(width, aboutPoint: ORIGIN);
  rotateAboutOrigin(angle);
}