copyWith method
MessagePollOptionDeleted
copyWith({
- int? pollMessageId,
- String? optionId,
- FormattedText? text,
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
MessagePollOptionDeleted copyWith({
int? pollMessageId,
String? optionId,
FormattedText? text,
}) => MessagePollOptionDeleted(
pollMessageId: pollMessageId ?? this.pollMessageId,
optionId: optionId ?? this.optionId,
text: text ?? this.text,
);