copyWith method
KeyboardButtonTypeRequestUsers
copyWith({
- int? id,
- bool? restrictUserIsBot,
- bool? userIsBot,
- bool? restrictUserIsPremium,
- bool? userIsPremium,
- int? maxQuantity,
- bool? requestName,
- bool? requestUsername,
- bool? requestPhoto,
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
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,
);