sendVerificationCode method

  1. @override
Future<void> sendVerificationCode({
  1. required String countryCode,
  2. required String account,
  3. required String accountType,
  4. int? type,
})
override

Sends a verification code to an email address or phone number. accountType can be "email" or "phone". When type is omitted the native SDK defaults to the registration verification flow.

Implementation

@override
Future<void> sendVerificationCode({
  required String countryCode,
  required String account,
  required String accountType,
  int? type,
}) async {
  await methodChannel
      .invokeMethod<void>('sendVerificationCode', <String, dynamic>{
        'countryCode': countryCode,
        'account': account,
        'accountType': accountType,
        if (type != null) 'type': type,
      });
}