copy method

  1. @override
Topic copy({
  1. List<String>? paths,
  2. String? separator,
})
override

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);
}