strokePaint function

Paint strokePaint(
  1. Color color,
  2. double width
)

A stroke paint using color and the logical-pixel width.

Implementation

Paint strokePaint(Color color, double width) => Paint()
  ..style = PaintingStyle.stroke
  ..strokeWidth = width
  ..color = color;