strokeRect method

void strokeRect(
  1. double x,
  2. double y,
  3. double w,
  4. double h,
)

Implementation

void strokeRect(double x, double y, double w, double h) {
  Rect rect = Rect.fromLTWH(x, y, w, h);
  addAction((Canvas canvas, Size size) {
    Paint paint = Paint()
      ..color = strokeStyle
      ..strokeJoin = lineJoin
      ..strokeCap = lineCap
      ..strokeWidth = lineWidth
      ..strokeMiterLimit = miterLimit
      ..style = PaintingStyle.stroke;
    canvas.drawRect(rect, paint);
  });
}