copyWith method

Theme copyWith({
  1. String? themeKey,
  2. String? name,
  3. String? description,
  4. Icon? icon,
  5. GenericLinks? links,
})

Implementation

Theme copyWith(
    {String? themeKey,
    String? name,
    String? description,
    Icon? icon,
    GenericLinks? links}) {
  return Theme(
    themeKey: themeKey ?? this.themeKey,
    name: name ?? this.name,
    description: description ?? this.description,
    icon: icon ?? this.icon,
    links: links ?? this.links,
  );
}