BubblePainter constructor

BubblePainter({
  1. required CustomClipper<Path> clipper,
  2. required Color color,
  3. required Color borderColor,
  4. required double borderWidth,
  5. required bool borderUp,
  6. required double elevation,
  7. required Color shadowColor,
})

Implementation

BubblePainter({
  required this.clipper,
  required Color color,
  required Color borderColor,
  required double borderWidth,
  required this.borderUp,
  required this.elevation,
  required this.shadowColor,
})   : _fillPaint = Paint()
        ..color = color
        ..style = PaintingStyle.fill,
      _strokePaint = borderWidth == 0 || borderColor == Colors.transparent
          ? null
          : (Paint()
            ..color = borderColor
            ..strokeWidth = borderWidth
            ..strokeCap = StrokeCap.round
            ..strokeJoin = StrokeJoin.round
            ..style = PaintingStyle.stroke);