EyeTracking class
High-accuracy open-source eye tracking plugin for Flutter
Supports web, iOS, and Android with real-time gaze tracking, calibration, eye state detection, head pose estimation, and more.
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
-
addCalibrationPoint(
CalibrationPoint point) → Future< bool> - Add a calibration point
-
addRegressionModule(
String name, String constructorJsGlobal) → Future< bool> - register a custom regression that you’ve loaded via JS
-
addTrackerModule(
String name, String constructorJsGlobal) → Future< bool> - register a custom tracker that you’ve loaded via JS
-
clearCalibration(
) → Future< bool> - Clear all calibration data
-
dispose(
) → Future< bool> - Dispose and clean up resources
-
enableBackgroundTracking(
bool enable) → Future< bool> - Enable or disable background tracking
-
finishCalibration(
) → Future< bool> - Finish the calibration process
-
getCalibrationAccuracy(
) → Future< double> - Get the current calibration accuracy
-
getCapabilities(
) → Future< Map< String, dynamic> > - Get platform capabilities
-
getEyeStateStream(
) → Stream< EyeState> - Get real-time eye state data
-
getFaceDetectionStream(
) → Stream< List< FaceDetection> > - Get real-time face detection data
-
getGazeStream(
) → Stream< GazeData> - Get real-time gaze tracking data
-
getHeadPoseStream(
) → Stream< HeadPose> - Get real-time head pose data
-
getPlatformVersion(
) → Future< String?> - Get the current platform version
-
getState(
) → Future< EyeTrackingState> - Get the current state of the eye tracking system
-
getStateStream(
) → Stream< EyeTrackingState> - Get real-time state data
-
getWarmedOnce(
) → bool - Get true if warmed once
-
getWarmedOnceStream(
) → Stream< bool> -
hasCameraPermission(
) → Future< bool> - Check if camera permission has been granted
-
initialize(
) → Future< bool> - Initialize the eye tracking system
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pauseTracking(
) → Future< bool> - Pause eye tracking
-
prewarm(
) → Future< void> -
requestCameraPermission(
) → Future< bool> - Request camera permission from the user
-
resumeTracking(
) → Future< bool> - Resume eye tracking after it was paused
-
setAccuracyMode(
String mode) → Future< bool> - Set the accuracy mode
-
setRegression(
String regression) → Future< bool> - Changing in Use Regression Module
-
setTracker(
String tracker) → Future< bool> - Changing in Use Tracker Module
-
setTrackingFrequency(
int fps) → Future< bool> - Set the tracking frequency
-
startCalibration(
List< CalibrationPoint> points) → Future<bool> - Start calibration process
-
startTracking(
) → Future< bool> - Start eye tracking
-
stopTracking(
) → Future< bool> - Stop eye tracking
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
createNinePointCalibration(
{double screenWidth = 1920, double screenHeight = 1080}) → List< CalibrationPoint> - Create a 9-point calibration pattern for higher accuracy
-
createStandardCalibration(
{double screenWidth = 1920, double screenHeight = 1080}) → List< CalibrationPoint> - Create a standard 5-point calibration pattern