copyWith method

LinkGroup copyWith({
  1. List<LinkGroup>? groups,
  2. SimpleLink? header,
  3. String? id,
  4. List<SimpleLink>? links,
  5. String? styleClass,
  6. int? weight,
})

Implementation

LinkGroup copyWith(
    {List<LinkGroup>? groups,
    SimpleLink? header,
    String? id,
    List<SimpleLink>? links,
    String? styleClass,
    int? weight}) {
  return LinkGroup(
    groups: groups ?? this.groups,
    header: header ?? this.header,
    id: id ?? this.id,
    links: links ?? this.links,
    styleClass: styleClass ?? this.styleClass,
    weight: weight ?? this.weight,
  );
}