EventTopicImpl.create constructor
EventTopicImpl.create({})
Must required type or nameType
Implementation
EventTopicImpl.create(
{Type? type,
String? nameType,
String target = _targetDefault,
String? path,
String? fragment,
String shema = _shema,
Map<String, String>? arguments}) {
if (type == null && nameType == null) {
throw Exception('Topic.create required type or nameType !');
}
_uri = Uri(
scheme: shema,
host: '$target.${'${type ?? nameType}'.replaceAll("?", "^")}',
path: path,
fragment: fragment,
queryParameters: arguments);
}