GazeInfo constructor

GazeInfo(
  1. Map event
)

Creates a GazeInfo instance using the provided gaze event event.

The event should contain all the necessary information for creating a GazeInfo object.

Implementation

GazeInfo(Map<dynamic, dynamic> event) {
  _checkKeyExists(event);
  timestamp = event[_timestampKey];
  x = event[_xKEY];
  y = event[_yKEY];
  fixationX = event[_fixationXKey];
  fixationY = event[_fixationYKey];
  leftOpenness = event[_leftOpennessKey];
  rightOpenness = event[_rightOpennessKey];
  _setTrackingState(event);
  _setEyeMovementState(event);
  _setScreenState(event);
}