startVerification method

  1. @override
Future<String> startVerification({
  1. required String id,
  2. required String key,
  3. String? brandLogoUrl,
})
override

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;
}