loginWithAuthDataAndUnionId static method Null safety

Future<LCUser> loginWithAuthDataAndUnionId(
  1. Map<String, dynamic> authData,
  2. String platform,
  3. String unionId,
  4. {LCUserAuthDataLoginOption? option}

Signs up or signs in a user with third party authData and unionId.


static Future<LCUser> loginWithAuthDataAndUnionId(
    Map<String, dynamic> authData, String platform, String unionId,
    {LCUserAuthDataLoginOption? option}) {
  if (isNullOrEmpty(platform)) {
    throw ArgumentError.notNull('platform');
  if (isNullOrEmpty(unionId)) {
    throw ArgumentError.notNull('unionId');
  if (option == null) {
    option = new LCUserAuthDataLoginOption();
  _mergeAuthData(authData, unionId, option);
  return _loginWithAuthData(platform, authData, option.failOnNotExist);