copyWith method

TestMessage copyWith({
  1. Target? target,
  2. String? name,
  3. RunnableDebugInformation? context,
  4. List<Tag>? tags,
})

Implementation

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