VAPContent class abstract

Abstract base class for dynamic content that can be injected into VAP animations.

VAPContent represents different types of content (text, images) that can be dynamically inserted into VAP animations at runtime. This allows for personalized animations with user-specific data.

Subclasses include:

Example usage:

Map<String, VAPContent> contents = {
  'username': TextContent('John Doe'),
  'avatar': ImageURLContent('https://example.com/avatar.jpg'),
  'logo': ImageAssetContent('assets/images/logo.png'),
};
Implementers

Constructors

VAPContent()

Properties

contentType String
The type of content (e.g., 'text', 'image_url', 'image_file').
no setter
contentValue String
The actual content value (text string, file path, URL, etc.).
no setter
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 setter

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

Static Methods

fromMap(Map<String, dynamic> value) VAPContent
Creates a VAPContent instance from a map received from native platforms.