TikTokEmbedData class
TikTok embed data
- Inheritance
-
- Object
- SocialMediaGenericEmbedData
- TikTokEmbedData
Constructors
- TikTokEmbedData({required String videoId})
-
TikTok embed data
const
Properties
- aspectRatio → double?
-
Aspect ratio of the embed
finalinherited
- canChangeSize → bool
-
Whether the embed can change size after being loaded or not
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- htmlBaseUrl → String
-
Base URL for
WebViewController.loadHtmlString, giving the page a real origin. When null, HTML is loaded via a data URI instead.no setteroverride - htmlBody → String
-
The HTML of the embed
no setteroverride
- htmlScript → String
-
Computed script tag to load on the embed
no setterinherited
- htmlScriptUrl → String
-
The JS script to load on the embed
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- videoId → String
-
TikTok video id (kept as a string to avoid JS integer precision loss)
final
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
-
extractVideoId(
String embedHtml) → String? - Extracts a video id from blockquote, iframe, or TikTok URL markup.
Constants
- embedHeight → const double
- Creates an instance of the embed data Default iframe height; the WebView resizes to match after load.