copyWith method

PortalApplication copyWith({
  1. int? id,
  2. int? category,
  3. String? code,
  4. String? nameZh,
  5. Value<String?> nameEn = const Value.absent(),
  6. Value<String?> iconUrl = const Value.absent(),
  7. int? position,
})

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,
);