linePaint property Null safety

Paint linePaint
latefinal

Implementation

late final Paint linePaint = Paint()
  ..color = style.color!
  ..style = PaintingStyle.stroke
  ..strokeWidth = 3
  ..strokeCap = StrokeCap.butt;