CxInteractionData class
Data class representing a user interaction event.
This mirrors the native SDK's InteractionContext structure.
Constructors
-
CxInteractionData({required InteractionEventName eventName, String? elementClasses, String? elementId, String? targetElementInnerText, ScrollDirection? scrollDirection, required String targetElement, Map<
String, dynamic> ? attributes}) -
const
Properties
-
attributes
→ Map<
String, dynamic> ? -
Additional custom attributes.
final
- elementClasses → String?
-
The widget class name (e.g., "ElevatedButton", "GestureDetector").
final
- elementId → String?
-
The widget's semantic label or key identifier.
final
- eventName → InteractionEventName
-
The type of interaction event.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollDirection → ScrollDirection?
-
Scroll or swipe direction (null for tap events).
final
- targetElement → String
-
The resolved target name or widget class name fallback.
final
- targetElementInnerText → String?
-
Visible text content of the widget.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts the interaction data to a map for sending to native.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited