SpriteComponent.fromSprite constructor

SpriteComponent.fromSprite(
  1. double width,
  2. double height,
  3. Sprite sprite
)

Implementation

SpriteComponent.fromSprite(double width, double height, this.sprite) {
  this.width = width;
  this.height = height;
}