TopicStatistics constructor

TopicStatistics({
  1. String? topic,
  2. String? node_pub,
  3. String? node_sub,
  4. RosTime? window_start,
  5. RosTime? window_stop,
  6. int? delivered_msgs,
  7. int? dropped_msgs,
  8. int? traffic,
  9. RosTime? period_mean,
  10. RosTime? period_stddev,
  11. RosTime? period_max,
  12. RosTime? stamp_age_mean,
  13. RosTime? stamp_age_stddev,
  14. RosTime? stamp_age_max,
})

Implementation

TopicStatistics({
  String? topic,
  String? node_pub,
  String? node_sub,
  RosTime? window_start,
  RosTime? window_stop,
  int? delivered_msgs,
  int? dropped_msgs,
  int? traffic,
  RosTime? period_mean,
  RosTime? period_stddev,
  RosTime? period_max,
  RosTime? stamp_age_mean,
  RosTime? stamp_age_stddev,
  RosTime? stamp_age_max,
}):
this.topic = topic ?? '',
this.node_pub = node_pub ?? '',
this.node_sub = node_sub ?? '',
this.window_start = window_start ?? RosTime(secs: 0, nsecs: 0),
this.window_stop = window_stop ?? RosTime(secs: 0, nsecs: 0),
this.delivered_msgs = delivered_msgs ?? 0,
this.dropped_msgs = dropped_msgs ?? 0,
this.traffic = traffic ?? 0,
this.period_mean = period_mean ?? RosTime(secs: 0, nsecs: 0),
this.period_stddev = period_stddev ?? RosTime(secs: 0, nsecs: 0),
this.period_max = period_max ?? RosTime(secs: 0, nsecs: 0),
this.stamp_age_mean = stamp_age_mean ?? RosTime(secs: 0, nsecs: 0),
this.stamp_age_stddev = stamp_age_stddev ?? RosTime(secs: 0, nsecs: 0),
this.stamp_age_max = stamp_age_max ?? RosTime(secs: 0, nsecs: 0);