copyWith method

BotMediaPreviewInfo copyWith({
  1. List<BotMediaPreview>? previews,
  2. List<String>? languageCodes,
})

Implementation

BotMediaPreviewInfo copyWith({
  List<BotMediaPreview>? previews,
  List<String>? languageCodes,
}) =>
    BotMediaPreviewInfo(
      previews: previews ?? this.previews,
      languageCodes: languageCodes ?? this.languageCodes,
    );