copyWith method

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

Implementation

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