DrawRectangle constructor

DrawRectangle(
  1. Color color
)

Implementation

DrawRectangle(Color color)
    : _paint = Paint()
        ..color = color
        ..style = PaintingStyle.fill;