copyWith method

PreparedInlineMessageId copyWith({
  1. String? id,
  2. int? expirationDate,
  3. dynamic extra,
  4. 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

PreparedInlineMessageId copyWith({
  String? id,
  int? expirationDate,
  dynamic extra,
  int? clientId,
}) => PreparedInlineMessageId(
  id: id ?? this.id,
  expirationDate: expirationDate ?? this.expirationDate,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);