copyWith method

  1. @override
InternalLinkTypeNewStory copyWith({
  1. StoryContentType? contentType()?,
  2. dynamic extra,
  3. int? clientId,
})
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
InternalLinkTypeNewStory copyWith({
  StoryContentType? Function()? contentType,
  dynamic extra,
  int? clientId,
}) => InternalLinkTypeNewStory(
  contentType: contentType != null ? contentType() : this.contentType,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);