GazePointer constructor

GazePointer({
  1. required CameraRig cameraRig,
  2. double dwellDuration = 2.0,
  3. double minDwellDuration = 0.6,
  4. double dwellAcceleration = 0.8,
  5. bool adaptiveDwell = true,
  6. double gazeGracePeriod = 0.15,
  7. bool enableHaptics = true,
  8. void onDwellSelect(
    1. String nodeId
    )?,
  9. void onTap(
    1. String nodeId
    )?,
  10. void onGazeEnter(
    1. String nodeId
    )?,
  11. void onGazeExit(
    1. String nodeId
    )?,
  12. void onDwellProgress(
    1. String nodeId,
    2. double progress
    )?,
})

Implementation

GazePointer({
  required this.cameraRig,
  this.dwellDuration = 2.0,
  this.minDwellDuration = 0.6,
  this.dwellAcceleration = 0.8,
  this.adaptiveDwell = true,
  this.gazeGracePeriod = 0.15,
  this.enableHaptics = true,
  this.onDwellSelect,
  this.onTap,
  this.onGazeEnter,
  this.onGazeExit,
  this.onDwellProgress,
}) : _effectiveDwell = dwellDuration;