drawRect method
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;
}
}