registerAccountWithPhone method
Register a new account with phone.
countryCode, phone, password, code details are passed to the native implementation
registerAccountWithPhone function on the native side is invoked
Implementation
@override
Future<Map<String, dynamic>> registerAccountWithPhone({
required String countryCode,
required String phone,
required String password,
required String code,
}) async {
final result = await methodChannel.invokeMethod<Map<dynamic, dynamic>>(
'registerAccountWithPhone',
<String, dynamic>{
'countryCode': countryCode,
'phone': phone,
'password': password,
'code': code,
},
);
return result?.cast<String, dynamic>() ?? {};
}