copyWith method

SimpleLink copyWith({
  1. String? href,
  2. String? iconClass,
  3. String? id,
  4. String? label,
  5. String? styleClass,
  6. String? title,
  7. int? weight,
})

Implementation

SimpleLink copyWith(
    {String? href,
    String? iconClass,
    String? id,
    String? label,
    String? styleClass,
    String? title,
    int? weight}) {
  return SimpleLink(
    href: href ?? this.href,
    iconClass: iconClass ?? this.iconClass,
    id: id ?? this.id,
    label: label ?? this.label,
    styleClass: styleClass ?? this.styleClass,
    title: title ?? this.title,
    weight: weight ?? this.weight,
  );
}