SpriteBatchComponent constructor

SpriteBatchComponent({
  1. SpriteBatch? spriteBatch,
  2. BlendMode? blendMode,
  3. Rect? cullRect,
  4. Paint? paint,
  5. ComponentKey? key,
})

Creates a component with an empty sprite batch which can be set later

Implementation

SpriteBatchComponent({
  this.spriteBatch,
  this.blendMode,
  this.cullRect,
  this.paint,
  super.key,
});