NineTileBoxComponent constructor

NineTileBoxComponent({
  1. NineTileBox? nineTileBox,
  2. Vector2? position,
  3. Vector2? size,
  4. Vector2? scale,
  5. double? angle,
  6. Anchor? anchor,
  7. Iterable<Component>? children,
  8. int? priority,
  9. ComponentKey? key,
})

Takes the NineTileBox instance to render a box that can grow and shrink seamlessly.

It uses the x, y, width and height coordinates from the PositionComponent to render.

Implementation

NineTileBoxComponent({
  this.nineTileBox,
  super.position,
  super.size,
  super.scale,
  super.angle,
  super.anchor,
  super.children,
  super.priority,
  super.key,
});