toRectangleComponent method

RectangleComponent toRectangleComponent()

Converts this Rect into a RectangleComponent.

Implementation

RectangleComponent toRectangleComponent() {
  return RectangleComponent.fromRect(this);
}