copyWith method
Implementation
@override
MessageDocument copyWith({
Document? document,
FormattedText? caption,
}) => MessageDocument(
document: document ?? this.document,
caption: caption ?? this.caption,
);
@override
MessageDocument copyWith({
Document? document,
FormattedText? caption,
}) => MessageDocument(
document: document ?? this.document,
caption: caption ?? this.caption,
);