CanvasImageAssetResolver class abstract interface

Resolves logical canvas image source references for the current host.

Each input is an opaque logical sourceRef stored by the canvas document.

Result maps are keyed by the exact sourceRef values supplied to the corresponding method. Returned maps may be partial; a missing key means that source or intrinsic metadata could not be resolved.

resolveSources returns source references that the current rendering host can load. These outputs are runtime values, not persistent resource identities. They may be temporary or rotating values such as signed URLs or blob URLs.

A renderable source is not necessarily a URL. Depending on the host it may be an https:, data:, blob:, asset:, file:, or another supported source reference.

resolveIntrinsicSizes returns stable layout-affecting metadata associated with the logical image content.

Properties

hashCode int
The hash code for this object.
no setterinherited
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
resolveIntrinsicSizes(List<String> sourceRefs) Future<Map<String, Size2D>>
resolveSources(List<String> sourceRefs) Future<Map<String, String>>
toString() String
A string representation of this object.
inherited

Operators

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