copyWith method
LinkGroup
copyWith({
- String? id,
- String? styleClass,
- LinkGroupHeader? header,
- int? weight,
- List<
LinkGroupLinksItem> ? links, - 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,
);
}