Topic constructor

Topic({
  1. TopicType? type,
  2. String? name,
})

Implementation

factory Topic({
  TopicType? type,
  $core.String? name,
}) {
  final _result = create();
  if (type != null) {
    _result.type = type;
  }
  if (name != null) {
    _result.name = name;
  }
  return _result;
}