copyWith method
AttachmentMenuBot
copyWith({
- int? botUserId,
- bool? supportsSelfChat,
- bool? supportsUserChats,
- bool? supportsBotChats,
- bool? supportsGroupChats,
- bool? supportsChannelChats,
- bool? requestWriteAccess,
- bool? isAdded,
- bool? showInAttachmentMenu,
- bool? showInSideMenu,
- bool? showDisclaimerInSideMenu,
- String? name,
- AttachmentMenuBotColor? nameColor,
- File? defaultIcon,
- File? iosStaticIcon,
- File? iosAnimatedIcon,
- File? iosSideMenuIcon,
- File? androidIcon,
- File? androidSideMenuIcon,
- File? macosIcon,
- File? macosSideMenuIcon,
- AttachmentMenuBotColor? iconColor,
- File? webAppPlaceholder,
Implementation
AttachmentMenuBot copyWith({
int? botUserId,
bool? supportsSelfChat,
bool? supportsUserChats,
bool? supportsBotChats,
bool? supportsGroupChats,
bool? supportsChannelChats,
bool? requestWriteAccess,
bool? isAdded,
bool? showInAttachmentMenu,
bool? showInSideMenu,
bool? showDisclaimerInSideMenu,
String? name,
AttachmentMenuBotColor? nameColor,
File? defaultIcon,
File? iosStaticIcon,
File? iosAnimatedIcon,
File? iosSideMenuIcon,
File? androidIcon,
File? androidSideMenuIcon,
File? macosIcon,
File? macosSideMenuIcon,
AttachmentMenuBotColor? iconColor,
File? webAppPlaceholder,
}) => AttachmentMenuBot(
botUserId: botUserId ?? this.botUserId,
supportsSelfChat: supportsSelfChat ?? this.supportsSelfChat,
supportsUserChats: supportsUserChats ?? this.supportsUserChats,
supportsBotChats: supportsBotChats ?? this.supportsBotChats,
supportsGroupChats: supportsGroupChats ?? this.supportsGroupChats,
supportsChannelChats: supportsChannelChats ?? this.supportsChannelChats,
requestWriteAccess: requestWriteAccess ?? this.requestWriteAccess,
isAdded: isAdded ?? this.isAdded,
showInAttachmentMenu: showInAttachmentMenu ?? this.showInAttachmentMenu,
showInSideMenu: showInSideMenu ?? this.showInSideMenu,
showDisclaimerInSideMenu:
showDisclaimerInSideMenu ?? this.showDisclaimerInSideMenu,
name: name ?? this.name,
nameColor: nameColor ?? this.nameColor,
defaultIcon: defaultIcon ?? this.defaultIcon,
iosStaticIcon: iosStaticIcon ?? this.iosStaticIcon,
iosAnimatedIcon: iosAnimatedIcon ?? this.iosAnimatedIcon,
iosSideMenuIcon: iosSideMenuIcon ?? this.iosSideMenuIcon,
androidIcon: androidIcon ?? this.androidIcon,
androidSideMenuIcon: androidSideMenuIcon ?? this.androidSideMenuIcon,
macosIcon: macosIcon ?? this.macosIcon,
macosSideMenuIcon: macosSideMenuIcon ?? this.macosSideMenuIcon,
iconColor: iconColor ?? this.iconColor,
webAppPlaceholder: webAppPlaceholder ?? this.webAppPlaceholder,
);