Paint toPaintStroke({num pixelRatio = 1}) { var p = Paint()..style = PaintingStyle.stroke; _setColor(p); _setStrokeWidth(p, pixelRatio); return p; }