TrianglePainter constructor
TrianglePainter({
- Color strokeColor = Colors.black,
- double strokeWidth = 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});