copyWith method

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

Implementation

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