Topic constructor
Topic(
- String rawTopic,
- List<
Validation> validations
Creates a new instance of a rawTopic from a rawTopic string. rawTopic - The topic to represent. validations - The validations to run on the rawTopic.
Implementation
Topic(this.rawTopic, List<Validation> validations) {
topicFragments = rawTopic.split(topicSeparator[0]);
// run all validations
for (final validation in validations) {
validation(this);
}
}