copyWith method

ScenarioMessage copyWith({
  1. String? name,
  2. String? description,
  3. RunnableDebugInformation? context,
  4. bool? hasPassed,
  5. List<Tag>? tags,
  6. Target? target,
})

Implementation

ScenarioMessage copyWith({
  String? name,
  String? description,
  RunnableDebugInformation? context,
  bool? hasPassed,
  List<Tag>? tags,
  Target? target,
}) {
  return ScenarioMessage(
    target: target ?? this.target,
    name: name ?? this.name,
    description: description ?? this.description,
    context: context ?? this.context,
    hasPassed: hasPassed ?? this.hasPassed,
    tags: tags ?? this.tags,
  );
}