TextureCodecs class final

The image formats plugins brought, asked in the order they were registered — the application's first, then each plugin's.

Reached by a plugin as host.registry<TextureCodecs>(), a companion of the ModelDecoders the engine hands its plugin host (ModelDecoders.textureCodecs).

Constructors

TextureCodecs()
An empty registry.

Properties

codecs → List<TextureCodec>
Every codec, in the order they are asked.
no setter
companions → Iterable<PluginRegistry>
The registries that come with this one, found by PluginHost.registry as if each had been handed to the host itself.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(TextureCodec codec) → Registration
Adds codec until the result is cancelled. Through a plugin's view, a PluginException for a codec named outside the plugin's namespace; an ArgumentError for a name another codec has.
codecFor(Uint8List bytes) → TextureCodec?
The first codec that claims bytes, or null.
forPlugin(PluginScope scope) → TextureCodecs
This registry as scope's plugin sees it: everything registered through the result is tracked by scope, ranked by it, and checked against its manifest. Must return the same type the registry is looked up by.
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