SpriteBatch constructor

SpriteBatch(
  1. Image atlas, {
  2. RSTransform? defaultTransform,
  3. bool useAtlas = true,
  4. Color? defaultColor,
  5. BlendMode? defaultBlendMode,
  6. Images? imageCache,
  7. String? imageKey,
})

Implementation

SpriteBatch(
  this.atlas, {
  this.defaultTransform,
  this.useAtlas = true,
  this.defaultColor,
  this.defaultBlendMode,
  Images? imageCache,
  String? imageKey,
})  : _imageCache = imageCache,
      _imageKey = imageKey;