copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
PollOptionProperties copyWith({
bool? canBeDeleted,
bool? canBeReplied,
bool? canBeRepliedInAnotherChat,
bool? canGetLink,
dynamic extra,
int? clientId,
}) => PollOptionProperties(
canBeDeleted: canBeDeleted ?? this.canBeDeleted,
canBeReplied: canBeReplied ?? this.canBeReplied,
canBeRepliedInAnotherChat:
canBeRepliedInAnotherChat ?? this.canBeRepliedInAnotherChat,
canGetLink: canGetLink ?? this.canGetLink,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);