drawRect abstract method

void drawRect(
  1. Rect rect,
  2. Paint paint
)

Draws a rectangle with the given Paint. Whether the rectangle is filled or stroked (or both) is controlled by Paint.style.

Implementation

void drawRect(Rect rect, Paint paint);