getSprite method

Sprite getSprite({
  1. Vector2? position,
  2. Vector2? size,
})

Implementation

Sprite getSprite({
  Vector2? position,
  Vector2? size,
}) {
  return Sprite(
    this,
    srcPosition: position,
    srcSize: size,
  );
}