ImageBase64Content class

Content type for base64-encoded image injection into VAP animations.

ImageBase64Content allows you to inject images that are encoded as base64 strings directly into VAP animations. This is useful when you have image data in memory or received from an API.

Example usage:

String base64Data = 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==';
ImageBase64Content image = ImageBase64Content(base64Data);
await controller.setVapTagContent('avatar', image);
Inheritance

Constructors

ImageBase64Content(String base64)
Creates an ImageBase64Content with the specified base64 data.

Properties

base64 String
The base64-encoded image data.
final
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

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