startVerification method
Implementation
@override
Future<String> startVerification({
//* The verificationSessionId from your server endpoint
required String id,
//* The ephemeralKeySecret from your server endpoint
required String key,
//* Configure a square brand logo. Recommended image size is [32 x 32 points].
String? brandLogoUrl,
}) async {
final result =
await methodChannel.invokeMethod<String>('startVerification', {
'id': id,
'key': key,
'brandLogoUrl': brandLogoUrl,
});
if (result == null) {
throw PlatformException(
code: 'NULL_RESULT',
message: 'The platform returned a null result',
);
}
return result;
}