strokeRect method
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);
});
}