loginWithEmail method

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

Login with email. countryCode,email,password,createHome details are passed on to the native loginWithEmail function on the native side is invoked

Implementation

@override
Future<Map<String, dynamic>> loginWithEmail({
  required String countryCode,
  required String email,
  required String password,
  required bool createHome,
}) async {
  final Map<dynamic, dynamic> result = await methodChannel
      .invokeMethod('loginWithEmail', <String, dynamic>{
        'countryCode': countryCode,
        'email': email,
        'password': password,
        'createHome': createHome,
      });
  return Map<String, dynamic>.from(result);
}