CaptionsEvent class
Event emitted when captions state or text updates arrive.
Common event types include:
captionsActiveChanged: Captions enabled/disabledcaptionsReceived: Caption text receivedspokenLanguageChanged: Spoken language changedcaptionLanguageChanged: Caption language changed
Constructors
-
CaptionsEvent({required String type, required Map<
String, dynamic> data}) -
const
-
CaptionsEvent.fromMap(Map<
String, dynamic> map) -
factory
Properties
- captionLanguage → String?
-
The caption language code (e.g., 'es')
no setter
- captionText → String?
-
The caption text (translated if applicable)
no setter
-
data
→ Map<
String, dynamic> -
Raw event data for backward compatibility
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isActive → bool?
-
Whether captions are currently active
no setter
- resultType → String?
-
Caption result type: 'partial' or 'final'
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speakerName → String?
-
The speaker's display name
no setter
- speakerRawId → String?
-
The speaker identifier
no setter
- spokenLanguage → String?
-
The spoken language code (e.g., 'en-US')
no setter
- spokenText → String?
-
The spoken text (original language)
no setter
- timestamp → int?
-
Timestamp of the caption
no setter
- type → String
-
The event type identifier
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