registerAccountWithPhone method

  1. @override
Future<Map<String, dynamic>> registerAccountWithPhone({
  1. required String countryCode,
  2. required String phone,
  3. required String password,
  4. required String code,
})
override

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>() ?? {};
}