copyWith method

PollOptionProperties copyWith({
  1. bool? canBeDeleted,
  2. bool? canBeReplied,
  3. bool? canBeRepliedInAnotherChat,
  4. bool? canGetLink,
  5. dynamic extra,
  6. int? clientId,
})

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,
);