TrianglePainter constructor

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

Implementation

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