copyWith method

PortalApplicationCategory copyWith({
  1. int? id,
  2. int? user,
  3. String? distinguishedName,
  4. String? nameZh,
  5. Value<String?> nameEn = const Value.absent(),
  6. int? position,
})

Implementation

PortalApplicationCategory copyWith({
  int? id,
  int? user,
  String? distinguishedName,
  String? nameZh,
  Value<String?> nameEn = const Value.absent(),
  int? position,
}) => PortalApplicationCategory(
  id: id ?? this.id,
  user: user ?? this.user,
  distinguishedName: distinguishedName ?? this.distinguishedName,
  nameZh: nameZh ?? this.nameZh,
  nameEn: nameEn.present ? nameEn.value : this.nameEn,
  position: position ?? this.position,
);