copyWith method

McpIcons copyWith({
  1. List<McpIcon>? icons,
})

A copy with the given properties replaced; everything else, unknown keys included, is kept.

Implementation

McpIcons copyWith({
  List<McpIcon>? icons,
}) =>
    McpIcons.fromJson({
      ...toJson(),
      if (icons != null) 'icons': $encode(icons),
    });