TrianglePainter constructor

TrianglePainter({
  1. Color strokeColor = Colors.black,
  2. double strokeWidth = 3,
  3. PaintingStyle paintingStyle = PaintingStyle.stroke,
})

Creates a triangle painter with customizable styling.

Parameters:

  • strokeColor: Color for the triangle (defaults to black)
  • strokeWidth: Width of the stroke line (defaults to 3, only for stroke style)
  • paintingStyle: Fill or stroke mode (defaults to stroke)

Implementation

TrianglePainter(
    {this.strokeColor = Colors.black,
    this.strokeWidth = 3,
    this.paintingStyle = PaintingStyle.stroke});