createPaint method
Creates the Paint object that will be used to draw lines.
Implementation
Paint createPaint() => Paint()
..color = color
..strokeWidth = thickness
..strokeCap = strokeCap
..strokeJoin = strokeJoin
..style = PaintingStyle.stroke;