TextureLayer constructor
Creates a texture layer bounded by rect and with backend texture
identified by textureId, if freeze is true new texture frames will not be
populated to the texture.
Implementation
TextureLayer({
@required this.rect,
@required this.textureId,
this.freeze = false,
}): assert(rect != null), assert(textureId != null);