TrianglePainter constructor
TrianglePainter({})
Creates a custom painter for drawing a 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
TrianglePainter({
required this.color,
required this.isEquilateral,
required this.borderWidth,
required this.borderColor,
});