copy method
A copy with paths and/or separator replaced. The type is kept.
Implementation
@override
Topic copy({List<String>? paths, String? separator}) {
return TopicImpl(type,
separator: separator ?? this.separator, paths: paths ?? this.paths);
}