EyeState class

Represents the current state of the user's eyes.

Provides information about eye openness and blink detection for both left and right eyes.

Constructors

EyeState.new({required bool leftEyeOpen, required bool rightEyeOpen, required bool leftEyeBlink, required bool rightEyeBlink, required DateTime timestamp})
Creates a new EyeState instance.
EyeState.fromMap(Map<String, dynamic> map)
Creates an EyeState instance from a map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
Whether a blink was detected in the left eye
final
leftEyeOpen bool
Whether the left eye is currently open
final
Whether a blink was detected in the right eye
final
rightEyeOpen bool
Whether the right eye is currently open
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
Timestamp when this eye state was captured
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts this eye state to a map for serialization.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited