fillParent method

  1. @override
void fillParent()
override

This determines how the shape should scale if it should try to fill its parents boundaries.

Implementation

@override
void fillParent() {
  refreshVertices(
    newVertices: RectangleComponent.sizeToVertices(size, anchor),
  );
}