sendVerificationCode abstract method
Sends a verification code to account.
accountType determines how the request is sent on the native side. Pass
"email" to send an email verification code or "phone" to send a SMS code.
The countryCode should match the account’s country prefix. Optionally a
type can be provided to specify the Tuya/Thing validation use-case (for
example 1 for registration). When omitted the default registration type
is used by the native SDKs.
Implementation
Future<void> sendVerificationCode({
required String countryCode,
required String account,
required String accountType,
int? type,
});