create<T> static method

Topic create<T>({
  1. List<String>? paths,
  2. String separator = '.',
})

The topic of the static type T with the given paths.

Implementation

static Topic create<T>({List<String>? paths, String separator = '.'}) {
  return TopicImpl('$T', paths: paths ?? [], separator: separator);
}