copyWith method
UserInfo
copyWith(
{ - int? id,
- String? mobile,
- String? nickname,
- String? avatar,
- int? gender,
- String? motto,
- String? email,
- String? birthday,
- bool? isQiye,
- int? isRobot,
- 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,
);
}