ImageURLContent class

Content type for remote URL image injection into VAP animations.

ImageURLContent allows you to inject images from remote URLs into VAP animations. The image will be downloaded and cached automatically.

Example usage:

ImageURLContent avatar = ImageURLContent('https://example.com/avatar.jpg');
await controller.setVapTagContent('avatar', avatar);
Inheritance

Constructors

ImageURLContent(String url)
Creates an ImageURLContent with the specified URL.

Properties

contentType String
The type of content (e.g., 'text', 'image_url', 'image_file').
no setteroverride
contentValue String
The actual content value (text string, file path, URL, etc.).
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toMap Map<String, dynamic>
Converts this content to a map for native platform communication.
no setterinherited
url String
The URL of the remote image.
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