setUser method

  1. @override
void setUser({
  1. required String accessKey,
  2. required ShopLiveCommonUser user,
})
override

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,
  });
}