TriangleUpPainter constructor

TriangleUpPainter(
  1. Color color
)

Implementation

TriangleUpPainter(Color color) {
  _paint = Paint()
    ..strokeWidth = 1.0 //线宽
    ..color = color
    ..isAntiAlias = true;
  _path = Path();
}