copyWith method
MessageForwardInfo
copyWith({
- MessageOrigin? origin,
- int? date,
- ForwardSource? source()?,
- String? publicServiceAnnouncementType,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
MessageForwardInfo copyWith({
MessageOrigin? origin,
int? date,
ForwardSource? Function()? source,
String? publicServiceAnnouncementType,
}) =>
MessageForwardInfo(
origin: origin ?? this.origin,
date: date ?? this.date,
source: source != null ? source() : this.source,
publicServiceAnnouncementType:
publicServiceAnnouncementType ?? this.publicServiceAnnouncementType,
);