copyWith method

LoginAccount copyWith({
  1. int? id,
  2. String? userName,
  3. int? type,
  4. int? status,
  5. int? whitelistAuthority,
  6. int? createTime,
  7. String? salt,
  8. int? tokenVersion,
  9. int? ban,
  10. int? baoyueVersion,
  11. int? donateVersion,
  12. int? vipType,
  13. int? viptypeVersion,
  14. bool? anonimousUser,
  15. bool? uninitialized,
})

Implementation

LoginAccount copyWith({
  int? id,
  String? userName,
  int? type,
  int? status,
  int? whitelistAuthority,
  int? createTime,
  String? salt,
  int? tokenVersion,
  int? ban,
  int? baoyueVersion,
  int? donateVersion,
  int? vipType,
  int? viptypeVersion,
  bool? anonimousUser,
  bool? uninitialized,
}) {
  return LoginAccount()
    ..id = id ?? this.id
    ..userName = userName ?? this.userName
    ..type = type ?? this.type
    ..status = status ?? this.status
    ..whitelistAuthority = whitelistAuthority ?? this.whitelistAuthority
    ..createTime = createTime ?? this.createTime
    ..salt = salt ?? this.salt
    ..tokenVersion = tokenVersion ?? this.tokenVersion
    ..ban = ban ?? this.ban
    ..baoyueVersion = baoyueVersion ?? this.baoyueVersion
    ..donateVersion = donateVersion ?? this.donateVersion
    ..vipType = vipType ?? this.vipType
    ..viptypeVersion = viptypeVersion ?? this.viptypeVersion
    ..anonimousUser = anonimousUser ?? this.anonimousUser
    ..uninitialized = uninitialized ?? this.uninitialized;
}