drawCautionTape method

  1. @override
void drawCautionTape(
  1. Rect rect,
  2. int offsetX,
  3. int offsetY
)
override

Draws a patterned caution tape in the specified rectangular bounds.

Implementation

@override
void drawCautionTape(Rect rect, int offsetX, int offsetY) {
  parent.drawCautionTape(
    Rect(bounds.x + rect.x, bounds.y + rect.y, rect.width, rect.height),
    bounds.x + offsetX,
    bounds.y + offsetY,
  );
}