copyWith method

UserBean copyWith({
  1. int? id,
  2. int? staffId,
  3. int? fromUserId,
  4. int? fromStaffId,
  5. int? region,
  6. int? rmId,
  7. int? createTime,
  8. int? updateTime,
  9. int? status,
  10. int? isActive,
  11. int? cc,
  12. String? mobile,
  13. String? name,
  14. String? password,
  15. String? salt,
  16. int? score,
  17. String? label,
  18. int? gender,
  19. int? age,
})

复制并修改

Implementation

UserBean copyWith({
  int? id,
  int? staffId,
  int? fromUserId,
  int? fromStaffId,
  int? region,
  int? rmId,
  int? createTime,
  int? updateTime,
  int? status,
  int? isActive,
  int? cc,
  String? mobile,
  String? name,
  String? password,
  String? salt,
  int? score,
  String? label,
  int? gender,
  int? age,
}) {
  return UserBean(
    id: id ?? this.id,
    staffId: staffId ?? this.staffId,
    fromUserId: fromUserId ?? this.fromUserId,
    fromStaffId: fromStaffId ?? this.fromStaffId,
    region: region ?? this.region,
    rmId: rmId ?? this.rmId,
    createTime: createTime ?? this.createTime,
    updateTime: updateTime ?? this.updateTime,
    status: status ?? this.status,
    isActive: isActive ?? this.isActive,
    cc: cc ?? this.cc,
    mobile: mobile ?? this.mobile,
    name: name ?? this.name,
    password: password ?? this.password,
    salt: salt ?? this.salt,
    score: score ?? this.score,
    label: label ?? this.label,
    gender: gender ?? this.gender,
    age: age ?? this.age,
  );
}