CanvasAssetLibraryItem class
One curated asset that can be presented by an asset-library UI.
Constructors
-
CanvasAssetLibraryItem({required String id, required String label, required String category, required String sourceRef, required String thumbnailRef, required Size2D intrinsicSize, List<
String> tags = const <String>[], double defaultSize = 220, Map<String, Object?> metadata = const <String, Object?>{}}) -
const
Properties
- category → String
-
Host-defined grouping key used by asset-library UI.
final
- defaultSize → double
-
Maximum initial extent of the inserted image node.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Stable identifier for this catalog item.
final
- intrinsicSize → Size2D
-
Natural dimensions of the source asset.
final
- label → String
-
User-facing asset name.
final
-
metadata
→ Map<
String, Object?> -
Host-defined data such as provider, attribution, licensing, or search
metadata.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceRef → String
-
Reference persisted in the canvas document when the asset is inserted.
final
-
Host-defined search and filtering terms.
final
- thumbnailRef → String
-
Reference used by the host's picker or grid UI.
final
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