copyWith method

  1. @override
MessageDocument copyWith({
  1. Document? document,
  2. FormattedText? caption,
})
override

Implementation

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