copyWith method
KeyboardButtonTypeRequestUser
copyWith({
- int? id,
- bool? restrictUserIsBot,
- bool? userIsBot,
- bool? restrictUserIsPremium,
- bool? userIsPremium,
override
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
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,
);