copyWith method
StepMessage
copyWith({
- String? name,
- RunnableDebugInformation? context,
- GherkinTable? table,
- String? multilineString,
- List<
Tag> ? tags, - StepResult? result,
- List<
Attachment> ? attachments,
Implementation
StepMessage copyWith({
String? name,
RunnableDebugInformation? context,
GherkinTable? table,
String? multilineString,
List<Tag>? tags,
StepResult? result,
List<Attachment>? attachments,
}) {
return StepMessage(
name: name ?? this.name,
context: context ?? this.context,
table: table ?? this.table,
multilineString: multilineString ?? this.multilineString,
tags: tags ?? this.tags,
result: result ?? this.result,
attachments: attachments ?? this.attachments,
);
}