copyWith method
BotMediaPreviewInfo
copyWith({
- List<
BotMediaPreview> ? previews, - List<
String> ? languageCodes, - dynamic extra,
- 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,
);