ImageAssetContent class
Content type for Flutter asset image injection into VAP animations.
ImageAssetContent allows you to inject images from your app's assets into VAP animations. The asset must be declared in your pubspec.yaml file.
Example usage:
ImageAssetContent logo = ImageAssetContent('assets/images/logo.png');
await controller.setVapTagContent('logo', logo);
- Inheritance
-
- Object
- VAPContent
- ImageAssetContent
Constructors
- ImageAssetContent(String assetPath)
- Creates an ImageAssetContent with the specified asset path.
Properties
- assetPath → String
-
The asset path as declared in pubspec.yaml.
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