BehaviorState class
Pure data model for behavior state. Stores raw interaction counts and time windows. No emotion logic.
- Annotations
Constructors
- BehaviorState({required int tapCount, required DateTime timeWindowStart})
-
const
- BehaviorState.initial()
-
Creates an initial, default state.
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
- tapCount → int
-
final
- timeWindowStart → DateTime
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerTap(
) → BehaviorState - Increments the tap count.
-
resetIfWindowExpired(
Duration window, DateTime now) → BehaviorState - Resets the state if the time window has expired.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited