setUser method
Implementation
@override
void setUser({
required String accessKey,
required ShopLiveCommonUser user,
}) async {
return await methodChannel
.invokeMethod<void>('common_setUser', <String, dynamic>{
'accessKey': accessKey,
'userId': user.userId,
'userName': user.userName,
'age': user.age,
'gender': user.gender?.parseText(),
'userScore': user.userScore,
'custom': user.custom,
});
}