FaceDetectionState class

Annotations
  • @freezed

Constructors

FaceDetectionState.faceDetected()
const
factory
FaceDetectionState.initial()
const
factory
FaceDetectionState.noCameraOnDevice()
const
factory
FaceDetectionState.noFace()
const
factory

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

map<TResult extends Object?>({required TResult initial(_Initial value), required TResult faceDetected(_FaceDetectedS value), required TResult noFace(_NOFaceDetected value), required TResult noCameraOnDevice(_NoCameraOnDevice value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? initial(_Initial value)?, TResult? faceDetected(_FaceDetectedS value)?, TResult? noFace(_NOFaceDetected value)?, TResult? noCameraOnDevice(_NoCameraOnDevice value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult initial(_Initial value)?, TResult faceDetected(_FaceDetectedS value)?, TResult noFace(_NOFaceDetected value)?, TResult noCameraOnDevice(_NoCameraOnDevice value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult initial()?, TResult faceDetected()?, TResult noFace()?, TResult noCameraOnDevice()?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult initial(), required TResult faceDetected(), required TResult noFace(), required TResult noCameraOnDevice()}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? initial()?, TResult? faceDetected()?, TResult? noFace()?, TResult? noCameraOnDevice()?}) → TResult?
inherited

Operators

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