TrianglePainter constructor

TrianglePainter({
  1. required Color color,
  2. required bool isEquilateral,
  3. required double borderWidth,
  4. required Color? borderColor,
})

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,
});