DiditConfig class

Configuration options for the Didit verification SDK.

Mirrors the native Android me.didit.sdk.Configuration and iOS DiditSdk.Configuration so Flutter consumers reach the same surface as the native integrations. All fields are optional with sensible defaults matching the native SDKs.

Constructors

DiditConfig({String? languageCode, String? fontFamily, bool loggingEnabled = false, bool showCloseButton = true, bool showExitConfirmation = true, bool closeOnComplete = false, CameraLens? defaultDocumentCamera, CameraLens? defaultLivenessCamera, bool showDocumentCameraSwitchButton = true, bool showLivenessCameraSwitchButton = true})
const

Properties

closeOnComplete bool
Automatically dismiss the verification UI when complete. Default is false.
final
defaultDocumentCamera CameraLens?
Lens used when first entering the document capture screen. null keeps the native default (back camera). Falls back to the first available camera when the requested lens isn't present on the device.
final
defaultLivenessCamera CameraLens?
Lens used when first entering the liveness (passive face) capture screen. null keeps the native default (front camera). Falls back to the first available camera when the requested lens isn't present on the device.
final
fontFamily String?
Custom font family name to use throughout the SDK UI.
final
hashCode int
The hash code for this object.
no setterinherited
languageCode String?
ISO 639-1 language code for the SDK UI (e.g. "en", "fr", "ar").
final
loggingEnabled bool
Enable SDK debug logging.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showCloseButton bool
Show the close (X) button on verification step screens. Default is true.
final
showDocumentCameraSwitchButton bool
Show the in-capture camera switcher on the document capture screen. Set to false to lock the user to defaultDocumentCamera. The switcher is also automatically hidden on single-camera devices, regardless of this flag. Default is true.
final
showExitConfirmation bool
Show a confirmation dialog when the user attempts to exit. Default is true.
final
showLivenessCameraSwitchButton bool
Show the in-capture camera switcher on the liveness (passive face) capture screen. Set to false to lock the user to defaultLivenessCamera. The switcher is also automatically hidden on single-camera devices, regardless of this flag. Default is true.
final

Methods

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

Operators

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