copyWith method
CustomField
copyWith({
- int? id,
- DateTime? dbDateCreated,
- DateTime? dbDateUpdated,
- CustomFieldStatus? status,
- String? term,
- String? label,
- String? description,
- CustomFieldDataType? dataType,
- CustomFieldRegistration? registration,
- bool? requiredForImport,
- bool? requiredForCrewing,
- bool? internal,
- bool? allowEdit,
- bool? requireVerification,
- String? choices,
- String? widgetConfig,
- int? step,
- int? section,
- List<
int> ? positions,
Implementation
CustomField copyWith(
{int? id,
DateTime? dbDateCreated,
DateTime? dbDateUpdated,
CustomFieldStatus? status,
String? term,
String? label,
String? description,
CustomFieldDataType? dataType,
CustomFieldRegistration? registration,
bool? requiredForImport,
bool? requiredForCrewing,
bool? internal,
bool? allowEdit,
bool? requireVerification,
String? choices,
String? widgetConfig,
int? step,
int? section,
List<int>? positions}) {
return CustomField(
id: id ?? this.id,
dbDateCreated: dbDateCreated ?? this.dbDateCreated,
dbDateUpdated: dbDateUpdated ?? this.dbDateUpdated,
status: status ?? this.status,
term: term ?? this.term,
label: label ?? this.label,
description: description ?? this.description,
dataType: dataType ?? this.dataType,
registration: registration ?? this.registration,
requiredForImport: requiredForImport ?? this.requiredForImport,
requiredForCrewing: requiredForCrewing ?? this.requiredForCrewing,
internal: internal ?? this.internal,
allowEdit: allowEdit ?? this.allowEdit,
requireVerification: requireVerification ?? this.requireVerification,
choices: choices ?? this.choices,
widgetConfig: widgetConfig ?? this.widgetConfig,
step: step ?? this.step,
section: section ?? this.section,
positions: positions ?? this.positions);
}