copyWith method

EditBotMediaPreview copyWith({
  1. int? botUserId,
  2. String? languageCode,
  3. int? fileId,
  4. InputStoryContent? content,
})

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

Implementation

EditBotMediaPreview copyWith({
  int? botUserId,
  String? languageCode,
  int? fileId,
  InputStoryContent? content,
}) => EditBotMediaPreview(
  botUserId: botUserId ?? this.botUserId,
  languageCode: languageCode ?? this.languageCode,
  fileId: fileId ?? this.fileId,
  content: content ?? this.content,
);