copyWith method

UserInfo copyWith({
  1. int? id,
  2. String? mobile,
  3. String? nickname,
  4. String? avatar,
  5. int? gender,
  6. String? motto,
  7. String? email,
  8. String? birthday,
  9. bool? isQiye,
  10. int? isRobot,
  11. int? isOfficial,
})

Implementation

UserInfo copyWith({
  int? id,
  String? mobile,
  String? nickname,
  String? avatar,
  int? gender,
  String? motto,
  String? email,
  String? birthday,
  bool? isQiye,
  int? isRobot,
  int? isOfficial,
}) {
  return UserInfo(
    id: id ?? this.id,
    mobile: mobile ?? this.mobile,
    nickname: nickname ?? this.nickname,
    avatar: avatar ?? this.avatar,
    gender: gender ?? this.gender,
    motto: motto ?? this.motto,
    email: email ?? this.email,
    birthday: birthday ?? this.birthday,
    isQiye: isQiye ?? this.isQiye,
    isRobot: isRobot ?? this.isRobot,
    isOfficial: isOfficial ?? this.isOfficial,
  );
}