RectanglePainter constructor
const
RectanglePainter({})
Creates a rectangle painter.
width is the width of the rectangle in logical pixels.
height is the height of the rectangle in logical pixels.
color is the fill color of the rectangle.
strokeWidth is the width of the rectangle's border. If null, no border is drawn.
strokeColor is the color of the rectangle's border.
cornerRadius is the radius of the rectangle's corners. If null, sharp corners are used.
Implementation
const RectanglePainter({
required this.width,
required this.height,
required this.color,
this.strokeWidth,
this.strokeColor,
this.cornerRadius,
});