InteractionEvent class

Represents an interaction event with an adaptive widget

Constructors

InteractionEvent.new({required String widgetId, required InteractionType type, dynamic value, DateTime? timestamp})
Constructor for creating a new interaction event
InteractionEvent.fromJson(Map<String, dynamic> json)
Create an interaction event from a JSON map
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
Timestamp when the interaction occurred
final
type InteractionType
The type of interaction that occurred
final
value → dynamic
Optional value associated with the interaction (e.g., scroll position)
final
widgetId String
Unique identifier for the widget that was interacted with
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert the interaction event to a JSON map
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited