copyWith method

  1. @override
KeyboardButtonTypeRequestUser copyWith({
  1. int? id,
  2. bool? restrictUserIsBot,
  3. bool? userIsBot,
  4. bool? restrictUserIsPremium,
  5. bool? userIsPremium,
})
override

Implementation

@override
KeyboardButtonTypeRequestUser copyWith({
  int? id,
  bool? restrictUserIsBot,
  bool? userIsBot,
  bool? restrictUserIsPremium,
  bool? userIsPremium,
}) =>
    KeyboardButtonTypeRequestUser(
      id: id ?? this.id,
      restrictUserIsBot: restrictUserIsBot ?? this.restrictUserIsBot,
      userIsBot: userIsBot ?? this.userIsBot,
      restrictUserIsPremium:
          restrictUserIsPremium ?? this.restrictUserIsPremium,
      userIsPremium: userIsPremium ?? this.userIsPremium,
    );