LivenessCheckConfig class

Main configuration class for the liveness check screen.

This class contains all customization options including theme, callbacks, messages, settings, and UI components.

Example:

LivenessCheckConfig(
  theme: LivenessCheckTheme(primaryColor: Colors.blue),
  callbacks: LivenessCheckCallbacks(
    onSuccess: () => print('Success'),
  ),
  messages: LivenessCheckMessages(
    title: 'Verify Your Identity',
  ),
)

Constructors

LivenessCheckConfig({CameraSettings? cameraSettings = const CameraSettings(), Widget? customBottomWidget, LivenessCheckTheme theme = const LivenessCheckTheme(), LivenessCheckCallbacks? callbacks, LivenessCheckMessages messages = const LivenessCheckMessages(), LivenessCheckSettings settings = const LivenessCheckSettings(), String? placeholder = "Please smile or blink eye 3 time", LivenessStatus status = LivenessStatus.init, bool showLoading = false, Widget? customLoadingWidget, Widget? customCameraLoadingWidget, AppBarConfig appBarConfig = const AppBarConfig()})
Creates a liveness check configuration.
const

Properties

appBarConfig AppBarConfig
AppBar configuration.
final
callbacks LivenessCheckCallbacks?
Callbacks for handling events.
final
cameraSettings CameraSettings?
Camera-specific settings.
final
customBottomWidget Widget?
Custom widget to display at the bottom of the screen.
final
customCameraLoadingWidget Widget?
Custom widget to replace the default camera initialization loading view.
final
customLoadingWidget Widget?
Custom loading widget to replace the default overlay spinner.
final
hashCode int
The hash code for this object.
no setterinherited
messages LivenessCheckMessages
Customizable text messages.
final
placeholder String?
Placeholder text shown during liveness check.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings LivenessCheckSettings
Behavior settings for the liveness check.
final
showLoading bool
Whether to show a loading overlay.
final
status LivenessStatus
Current status of the liveness check (init, success, fail).
final
theme LivenessCheckTheme
Theme configuration for visual customization.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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