Sprite constructor

Sprite(
  1. Image image, {
  2. Vector2? srcPosition,
  3. Vector2? srcSize,
})

Implementation

Sprite(
  this.image, {
  Vector2? srcPosition,
  Vector2? srcSize,
}) {
  this.srcSize = srcSize;
  this.srcPosition = srcPosition;
}