TextContent class
Content type for dynamic text injection into VAP animations.
TextContent allows you to inject dynamic text into VAP animations at runtime. The text will be rendered using the styling defined in the VAP file.
Example usage:
TextContent username = TextContent('John Doe');
await controller.setVapTagContent('username', username);
- Inheritance
-
- Object
- VAPContent
- TextContent
Constructors
- TextContent(String text)
- Creates a TextContent with the specified text.
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
- text → String
-
The text content to display in the animation.
final
-
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