Triangle constructor

Triangle({
  1. double size = 50.0,
  2. Color color = Colors.black,
  3. bool isEquilateral = true,
  4. double borderWidth = 0.0,
  5. Color? borderColor,
})

Creates a triangle widget.

The size parameter specifies the side length of the triangle. The color parameter specifies the color of the triangle. The isEquilateral parameter specifies whether the triangle should be equilateral (true) or isosceles (false). The borderWidth parameter specifies the width of the optional border around the triangle. The borderColor parameter specifies the color of the optional border around the triangle.

Implementation

Triangle({
  this.size = 50.0,
  this.color = Colors.black,
  this.isEquilateral = true,
  this.borderWidth = 0.0,
  this.borderColor,
});