TextureDecodeContext class final

What a TextureCodec is handed for one encoded image: one object that can gain members, rather than a list of parameters that grows.

Constructors

TextureDecodeContext({required Uint8List bytes, int? maxDimension, IssueSink? onIssue})
The bytes of one image, with no size cap and nowhere to report unless maxDimension and onIssue are given.
const

Properties

bytes → Uint8List
The encoded image, whole.
final
hashCode → int
The hash code for this object.
no setterinherited
maxDimension → int?
The longest side the result may have, in pixels, or null for no cap: a codec that can decode at a smaller size does, and one that cannot is scaled down afterwards.
final
onIssue → IssueSink?
Where a codec says why it left an image out, an Issue whose message names the format; null loses it.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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