Texture class

The bytes field takes precedent over the uri field. If both the uri and bytes fields are empty, a fully opaque white placeholder will be used.

Available extensions

Constructors

Texture(List<int> bytes)
factory

Properties

embeddedImage EmbeddedImage?
Decompressed image bytes for uploading to the GPU. If this field is not empty, it takes precedent over the uri field for sourcing the texture.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri String?
A Flutter asset URI for a compressed image file to import and decode.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
toTexture() Texture

Available on Texture, provided by the TextureHelpers extension

unpack() TextureT

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

pack(Builder fbBuilder, TextureT? object) int

Constants

reader → const Reader<Texture>