TextureRegion constructor

const TextureRegion(
  1. Texture texture, {
  2. int x = 0,
  3. int y = 0,
  4. int width = -1,
  5. int height = -1,
  6. int mipLevel = 0,
  7. int slice = 0,
})

Implementation

const TextureRegion(
  this.texture, {
  this.x = 0,
  this.y = 0,
  this.width = -1,
  this.height = -1,
  this.mipLevel = 0,
  this.slice = 0,
});