BehaviorModule class
BehaviorModule is responsible for collecting and managing behavioral events
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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 Properties
-
events
→ Future<
List< KLPEventModel> > -
Get all collected events (thread-safe)
no setter
- isContinuousTracking → bool
-
Get continuous tracking state
no setter
- isTracking → bool
-
Get tracking state
no setter
Static Methods
-
addEvent(
KLPEventModel event) → Future< void> - Add an event to the collection (thread-safe) addEvent is async but using fire-and-forget do not blocking UI on Widget side
-
createClickEvent(
{required KLPPointWrapper position, required String target}) → KLPEventModel -
createKeyboardEvent(
{required String key, required String target, KLPPointWrapper? position}) → KLPEventModel -
createPointerEvent(
{required KLPPointWrapper startPosition, required KLPPointWrapper endPosition, required int distance, required int duration, required String target}) → KLPEventModel -
startTracking(
{bool continuousTracking = false}) → void - Start behavioral tracking
-
stopTracking(
) → void - Stop behavioral tracking