SotaIdPlugin class

Constructors

SotaIdPlugin()

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

checkCameraPermission() Future<bool>
Check camera permission
checkPermissions() Future<bool>
Check if the app has necessary permissions
checkStoragePermission() Future<bool>
Check storage permission
clearPendingSession() Future<void>
Clear pending verification session
createVerificationSession({required VerificationType verificationType, File? documentFile}) Future<VerificationSession>
Create a new verification session
getCountries() Future<List<Country>>
Get available countries from the API
getPendingSession() Future<Map<String, dynamic>?>
Check if there's a pending manual verification
getVerificationStatus(String sessionId) Future<VerificationStatus>
Get verification status
initialize({bool sandboxMode = true, String? bearerToken}) → void
Initialize the plugin with environment configuration and bearer token
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pickImage({bool fromCamera = false}) Future<File?>
Pick an image from gallery or camera
recordFaceVideo(BuildContext context) Future<File?>
Record a face video using custom camera interface
requestCameraPermission() Future<bool>
Request camera permission
requestStoragePermission() Future<bool>
Request storage permission
showPendingVerificationDialog(BuildContext context) Future<bool?>
Show dialog for pending verification choice
startCompleteVerification({required BuildContext context, String? bearerToken, dynamic onVerificationComplete(VerificationResponse)?, dynamic onError(String)?}) Future<void>
Start complete verification flow (document + face)
startFaceVerification({required BuildContext context, required File documentFile, String? bearerToken, dynamic onVerificationComplete(VerificationResponse)?, dynamic onError(String)?}) Future<void>
Start face-only verification flow
startLivenessVerification({required BuildContext context, String? bearerToken, dynamic onVerificationComplete(VerificationResponse)?, dynamic onError(String)?}) Future<void>
Start liveness-only verification flow
startVerificationFlow({required BuildContext context, required VerificationType verificationType, File? documentFile, String? bearerToken, dynamic onVerificationComplete(VerificationResponse)?, dynamic onError(String)?}) Future<void>
Start the verification flow with app-controlled verification type The app decides whether to show complete verification or face-only verification
storePendingSession(VerificationResponse response) Future<void>
Store pending verification session for manual verification
toString() String
A string representation of this object.
inherited
verifyBack(String sessionId, File photo) Future<VerificationResponse>
Verify document back
verifyFace(String sessionId, File video, VerificationType verificationType) Future<VerificationResponse>
Verify face
verifyFront(String sessionId, String documentType, String countryCode, File photo) Future<VerificationResponse>
Verify document front

Operators

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