# copyWith method Null safety

1. @override

DecoratedContentModel copyWith(

1. {String? documentID,
2. String? appId,
3. String? description,
4. String? decoratingComponentName,
5. String? decoratingComponentId,
6. String? contentComponentName,
7. String? contentComponentId,
8. DecorationComponentPosition? decorationComponentPosition,
9. double? percentageDecorationVisible,
10. StorageConditionsModel? conditions}

)
override

## Implementation

    @override
    DecoratedContentModel copyWith({
      String? documentID,
      String? appId,
      String? description,
      String? decoratingComponentName,
      String? decoratingComponentId,
      String? contentComponentName,
      String? contentComponentId,
      DecorationComponentPosition? decorationComponentPosition,
      double? percentageDecorationVisible,
      StorageConditionsModel? conditions,
    }) {
      return DecoratedContentModel(
        documentID: documentID ?? this.documentID,
        appId: appId ?? this.appId,
        description: description ?? this.description,
        decoratingComponentName:
            decoratingComponentName ?? this.decoratingComponentName,
        decoratingComponentId:
            decoratingComponentId ?? this.decoratingComponentId,
        contentComponentName: contentComponentName ?? this.contentComponentName,
        contentComponentId: contentComponentId ?? this.contentComponentId,
        decorationComponentPosition:
            decorationComponentPosition ?? this.decorationComponentPosition,
        percentageDecorationVisible:
            percentageDecorationVisible ?? this.percentageDecorationVisible,
        conditions: conditions ?? this.conditions,
      );
    }