Topic constructor

Topic({
  1. required Ros ros,
  2. required String name,
  3. required String type,
  4. String compression = 'none',
  5. int throttleRate = 0,
  6. bool latch = false,
  7. int queueSize = 100,
  8. int queueLength = 0,
  9. bool reconnectOnClose = true,
})

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);