copyWith method

StepMessage copyWith({
  1. String? name,
  2. RunnableDebugInformation? context,
  3. GherkinTable? table,
  4. String? multilineString,
  5. List<Tag>? tags,
  6. StepResult? result,
  7. 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,
  );
}