copyWith method

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

Implementation

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