strokePath method

  1. @override
void strokePath(
  1. List path,
  2. PStyle style, {
  3. bool closePath = false,
})
override

Stroke a path of points.

Implementation

@override
void strokePath(List path, PStyle style, {bool closePath = false}) {
  var fullPath = _buildFullPath(path, closePath);
  final paint = style.toPaintStroke(pixelRatio: pixelRatio);

  _widgetPainter.addOp((canvas, size) {
    canvas.drawPath(fullPath, paint);
  });
}