ImageFileContent class
Content type for local file image injection into VAP animations.
ImageFileContent allows you to inject images from the device's file system into VAP animations. The file path should point to a valid image file accessible to the app.
Example usage:
ImageFileContent image = ImageFileContent('/storage/emulated/0/Download/avatar.jpg');
await controller.setVapTagContent('avatar', image);
- Inheritance
-
- Object
- VAPContent
- ImageFileContent
Constructors
- ImageFileContent(String filePath)
- Creates an ImageFileContent with the specified file path.
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
- filePath → String
-
The file system path to the image file.
final
- 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