copyWith method

KeyboardButtonTypeRequestUsers copyWith({
  1. int? id,
  2. bool? restrictUserIsBot,
  3. bool? userIsBot,
  4. bool? restrictUserIsPremium,
  5. bool? userIsPremium,
  6. int? maxQuantity,
  7. bool? requestName,
  8. bool? requestUsername,
  9. bool? requestPhoto,
})

Implementation

KeyboardButtonTypeRequestUsers copyWith({
  int? id,
  bool? restrictUserIsBot,
  bool? userIsBot,
  bool? restrictUserIsPremium,
  bool? userIsPremium,
  int? maxQuantity,
  bool? requestName,
  bool? requestUsername,
  bool? requestPhoto,
}) => KeyboardButtonTypeRequestUsers(
  id: id ?? this.id,
  restrictUserIsBot: restrictUserIsBot ?? this.restrictUserIsBot,
  userIsBot: userIsBot ?? this.userIsBot,
  restrictUserIsPremium: restrictUserIsPremium ?? this.restrictUserIsPremium,
  userIsPremium: userIsPremium ?? this.userIsPremium,
  maxQuantity: maxQuantity ?? this.maxQuantity,
  requestName: requestName ?? this.requestName,
  requestUsername: requestUsername ?? this.requestUsername,
  requestPhoto: requestPhoto ?? this.requestPhoto,
);