TextureTransform constructor

TextureTransform({
  1. Vector2? offset,
  2. Vector2? scale,
  3. double rotation = 0.0,
})

Creates a texture transform, identity when all arguments are omitted.

Implementation

TextureTransform({Vector2? offset, Vector2? scale, this.rotation = 0.0})
  : offset = offset ?? Vector2.zero(),
    scale = scale ?? Vector2.all(1.0);