Triangle constructor
Triangle({})
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,
});