copyWith method

  1. @override
MessageSuggestedPostApproved copyWith({
  1. int? suggestedPostMessageId,
  2. SuggestedPostPrice? price()?,
  3. int? sendDate,
})
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
MessageSuggestedPostApproved copyWith({
  int? suggestedPostMessageId,
  SuggestedPostPrice? Function()? price,
  int? sendDate,
}) => MessageSuggestedPostApproved(
  suggestedPostMessageId:
      suggestedPostMessageId ?? this.suggestedPostMessageId,
  price: price != null ? price() : this.price,
  sendDate: sendDate ?? this.sendDate,
);