copyWith method

BusinessConnectedBot copyWith({
  1. int? botUserId,
  2. BusinessRecipients? recipients,
  3. bool? canReply,
  4. dynamic extra,
  5. 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

BusinessConnectedBot copyWith({
  int? botUserId,
  BusinessRecipients? recipients,
  bool? canReply,
  dynamic extra,
  int? clientId,
}) =>
    BusinessConnectedBot(
      botUserId: botUserId ?? this.botUserId,
      recipients: recipients ?? this.recipients,
      canReply: canReply ?? this.canReply,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );