copyWith method
Implementation
NavNode<T> copyWith({
NavNodeId? id,
String? label,
IconData? icon,
List<NavNode<T>>? children,
NavBadge? badge,
List<String>? shortcut,
T? value,
bool? enabled,
}) =>
NavNode<T>(
id: id ?? this.id,
label: label ?? this.label,
icon: icon ?? this.icon,
children: children ?? this.children,
badge: badge ?? this.badge,
shortcut: shortcut ?? this.shortcut,
value: value ?? this.value,
enabled: enabled ?? this.enabled,
);