RectangleHitbox constructor

RectangleHitbox({
  1. Vector2? position,
  2. Vector2? size,
  3. double? angle,
  4. Anchor? anchor,
  5. int? priority,
})

Implementation

RectangleHitbox({
  Vector2? position,
  Vector2? size,
  double? angle,
  Anchor? anchor,
  int? priority,
})  : shouldFillParent = size == null && position == null,
      super(
        position: position,
        size: size,
        angle: angle,
        anchor: anchor,
        priority: priority,
      );