copyWith method

AttachmentRequest copyWith({
  1. String? mimeType,
  2. String? objectId,
  3. AttachmentProvider? provider,
  4. AttachmentType? type,
})

Implementation

AttachmentRequest copyWith(
    {String? mimeType,
    String? objectId,
    enums.AttachmentProvider? provider,
    enums.AttachmentType? type}) {
  return AttachmentRequest(
      mimeType: mimeType ?? this.mimeType,
      objectId: objectId ?? this.objectId,
      provider: provider ?? this.provider,
      type: type ?? this.type);
}