TextureT 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.
- Implemented types
Constructors
- TextureT({String? uri, EmbeddedImageT? embeddedImage})
Properties
- embeddedImage ↔ EmbeddedImageT?
-
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.getter/setter pair - 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.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pack(
Builder fbBuilder) → int -
Serialize the object using the given builder, returning the offset.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited