copyWith method

BotMediaPreviewInfo copyWith({
  1. List<BotMediaPreview>? previews,
  2. List<String>? languageCodes,
  3. dynamic extra,
  4. int? clientId,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

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