copyWith method

ShareUsersWithBot copyWith({
  1. KeyboardButtonSource? source,
  2. int? buttonId,
  3. List<int>? sharedUserIds,
  4. bool? onlyCheck,
})

Implementation

ShareUsersWithBot copyWith({
  KeyboardButtonSource? source,
  int? buttonId,
  List<int>? sharedUserIds,
  bool? onlyCheck,
}) =>
    ShareUsersWithBot(
      source: source ?? this.source,
      buttonId: buttonId ?? this.buttonId,
      sharedUserIds: sharedUserIds ?? this.sharedUserIds,
      onlyCheck: onlyCheck ?? this.onlyCheck,
    );