copyWith method

FieldConfigurationItem copyWith({
  1. String? description,
  2. String? id,
  3. bool? isHidden,
  4. bool? isRequired,
  5. String? renderer,
})

Implementation

FieldConfigurationItem copyWith(
    {String? description,
    String? id,
    bool? isHidden,
    bool? isRequired,
    String? renderer}) {
  return FieldConfigurationItem(
    description: description ?? this.description,
    id: id ?? this.id,
    isHidden: isHidden ?? this.isHidden,
    isRequired: isRequired ?? this.isRequired,
    renderer: renderer ?? this.renderer,
  );
}