# copyWith method Null safety

1. @override

DocumentItemModel copyWith(

1. {String? documentID,
2. String? reference,
3. PlatformMediumModel? image}

)
override

## Implementation

    @override
    DocumentItemModel copyWith({
      String? documentID,
      String? reference,
      PlatformMediumModel? image,
    }) {
      return DocumentItemModel(
        documentID: documentID ?? this.documentID,
        reference: reference ?? this.reference,
        image: image ?? this.image,
      );
    }