GazeData class
Represents gaze tracking data with screen coordinates and confidence.
Contains the x,y coordinates where the user is looking on the screen, along with a confidence score indicating tracking accuracy.
Constructors
- GazeData.new({required double x, required double y, required double confidence, required DateTime timestamp})
- Creates a new GazeData instance.
-
GazeData.fromMap(Map<
String, dynamic> map) -
Creates a GazeData instance from a map.
factory
Properties
- confidence → double
-
Confidence score between 0.0 and 1.0 indicating tracking accuracy
final
- 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 this gaze data was captured
final
- x → double
-
The horizontal coordinate of the gaze point on the screen
final
- y → double
-
The vertical coordinate of the gaze point on the screen
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts this gaze data to a map for serialization.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited