copyWith method

AnchorInfo copyWith({
  1. String? nickName,
  2. String? avatarUrl,
  3. int? fansNum,
  4. int? subscribeNum,
  5. String? userID,
})

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