copy method

MarkdownConfig copy({
  1. List<WidgetConfig> configs = const [],
})

Implementation

MarkdownConfig copy({List<WidgetConfig> configs = const []}) {
  for (final config in configs) {
    _tag2Config[config.tag] = config;
  }
  return MarkdownConfig(configs: _tag2Config.values.toList());
}