registerAccountWithEmail method

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

countryCode, email, password, code details are passed to the native implementation registerAccountWithEmail function on the native side is invoked

Implementation

@override
Future<Map<String, dynamic>> registerAccountWithEmail({
  required String countryCode,
  required String email,
  required String password,
  required String code,
}) async {
  final result = await methodChannel.invokeMethod<Map<dynamic, dynamic>>(
    'registerAccountWithEmail',
    <String, dynamic>{
      'countryCode': countryCode,
      'email': email,
      'password': password,
      'code': code,
    },
  );
  return result?.cast<String, dynamic>() ?? {};
}