copyWith method

  1. @override
LabelledBodyComponentModel copyWith({
  1. String? documentID,
  2. String? label,
  3. String? componentName,
  4. String? componentId,
})
override

Implementation

@override
LabelledBodyComponentModel copyWith({
  String? documentID,
  String? label,
  String? componentName,
  String? componentId,
}) {
  return LabelledBodyComponentModel(
    documentID: documentID ?? this.documentID,
    label: label ?? this.label,
    componentName: componentName ?? this.componentName,
    componentId: componentId ?? this.componentId,
  );
}