copyWith method

DecoratedContentEntity copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? description,
  4. String? decoratingComponentName,
  5. String? decoratingComponentId,
  6. String? contentComponentName,
  7. String? contentComponentId,
  8. int? decorationComponentPosition,
  9. double? percentageDecorationVisible,
  10. StorageConditionsEntity? conditions,
})

Implementation

DecoratedContentEntity copyWith({
  String? documentID,
  String? appId,
  String? description,
  String? decoratingComponentName,
  String? decoratingComponentId,
  String? contentComponentName,
  String? contentComponentId,
  int? decorationComponentPosition,
  double? percentageDecorationVisible,
  StorageConditionsEntity? conditions,
}) {
  return DecoratedContentEntity(
    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,
  );
}