associateAuthDataAndUnionId method Null safety
- Map<
String, dynamic> authData, - String platform,
- String unionId,
- {LCUserAuthDataLoginOption? option}
Associates this user with a third party authData
and unionId
.
Implementation
Future associateAuthDataAndUnionId(
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 _linkWithAuthData(platform, authData);
}