toString method

  1. @override
String toString()
override

The routing key: implementations use implements, so the body in Topic is not inherited and has to be repeated here.

Implementation

@override
String toString() => topic;