createPaint method

Paint createPaint()

Creates the Paint object that will be used to paint lines.

Implementation

Paint createPaint() => Paint()
  ..color = color
  ..strokeWidth = thickness
  ..style = PaintingStyle.stroke;