copyWith method

  1. @override
SuggestedActionCustom copyWith({
  1. String? name,
  2. FormattedText? title,
  3. FormattedText? description,
  4. String? url,
})
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
SuggestedActionCustom copyWith({
  String? name,
  FormattedText? title,
  FormattedText? description,
  String? url,
}) => SuggestedActionCustom(
  name: name ?? this.name,
  title: title ?? this.title,
  description: description ?? this.description,
  url: url ?? this.url,
);