copyWith method

Tag copyWith({
  1. String? name,
  2. List<ASTNode>? content,
  3. List<Filter>? filters,
  4. List<ASTNode>? body,
})

Implementation

Tag copyWith({
  String? name,
  List<ASTNode>? content,
  List<Filter>? filters,
  List<ASTNode>? body,
}) {
  return Tag(
    name ?? this.name,
    content ?? this.content,
    filters: filters ?? this.filters,
    body: body ?? this.body,
  );
}