drawRect method

void drawRect(
  1. UiRect rect,
  2. UiPaint paint
)

Implementation

void drawRect(UiRect rect, UiPaint paint) {
  if (paint.getStrokeDasharray() != null && paint.getStrokeDasharray()!.length >= 2) {
    UiPath rectPath = UiPath();
    rectPath.addRect(rect);
    drawPath(rectPath, paint);
  } else {
    _uiCanvas.drawRect(rect.expose(), paint.expose());
    ++_actions;
  }
}