copyWith method
BusinessConnectedBot
copyWith({
- int? botUserId,
- BusinessRecipients? recipients,
- BusinessBotRights? rights,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
BusinessConnectedBot copyWith({
int? botUserId,
BusinessRecipients? recipients,
BusinessBotRights? rights,
}) => BusinessConnectedBot(
botUserId: botUserId ?? this.botUserId,
recipients: recipients ?? this.recipients,
rights: rights ?? this.rights,
);