TrianglePainter constructor

TrianglePainter({
  1. required Color color,
  2. required RelativeRect position,
  3. required Size size,
  4. required double screenWidth,
  5. double radius = 20,
  6. bool isInverted = false,
})

Implementation

TrianglePainter({
  required this.color,
  required this.position,
  required this.size,
  required this.screenWidth,
  this.radius = 20,
  this.isInverted = false,
}) {
  _paint = Paint()
    ..style = PaintingStyle.fill
    ..color = color
    ..strokeWidth = 10
    ..isAntiAlias = true;
}