TextureTransform constructor
TextureTransform({
- Vector2? offset,
- Vector2? scale,
- 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);