copyWith method
Implementation
AnchorInfo copyWith(
{String? nickName,
String? avatarUrl,
int? fansNum,
int? subscribeNum,
String? userID}) {
return AnchorInfo(
nickName: nickName ?? this.nickName,
userID: userID ?? this.userID,
avatarUrl: avatarUrl ?? this.avatarUrl,
fansNum: fansNum ?? this.fansNum,
subscribeNum: subscribeNum ?? this.subscribeNum);
}