Topic constructor
Topic({})
Implementation
Topic({
required this.ros,
required this.name,
required this.type,
this.compression = 'none',
this.throttleRate = 0,
this.latch = false,
this.queueSize = 100,
this.queueLength = 0,
this.reconnectOnClose = true,
}) : assert(['png', 'cbor', 'none'].contains(compression)),
assert(throttleRate >= 0);