Creates a new texture from an Image
object.
var myTexture = new Texture(myImage);
Source
Texture(ui.Image image) : size = new Size(image.width.toDouble(), image.height.toDouble()), image = image, trimmed = false, rotated = false, frame = new Rect.fromLTRB(0.0, 0.0, image.width.toDouble(), image.height.toDouble()), spriteSourceSize = new Rect.fromLTRB(0.0, 0.0, image.width.toDouble(), image.height.toDouble()), pivot = new Point(0.5, 0.5);