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() {
  throw UnsupportedError(
    'Use the RectangleHitbox if you want to fill the parent',
  );
}