TileSprite constructor

TileSprite({
  1. required String path,
  2. Vector2? position,
  3. Vector2? size,
})

Implementation

TileSprite({
  required this.path,
  Vector2? position,
  Vector2? size,
})  : position = position ?? Vector2.zero(),
      size = size ?? Vector2.zero();