copyWith method
Implementation
PortalApplication copyWith({
int? id,
int? category,
String? code,
String? nameZh,
Value<String?> nameEn = const Value.absent(),
Value<String?> iconUrl = const Value.absent(),
int? position,
}) => PortalApplication(
id: id ?? this.id,
category: category ?? this.category,
code: code ?? this.code,
nameZh: nameZh ?? this.nameZh,
nameEn: nameEn.present ? nameEn.value : this.nameEn,
iconUrl: iconUrl.present ? iconUrl.value : this.iconUrl,
position: position ?? this.position,
);