PointCloud2 constructor

PointCloud2({
  1. Header? header,
  2. int? height,
  3. int? width,
  4. List<PointField>? fields,
  5. bool? is_bigendian,
  6. int? point_step,
  7. int? row_step,
  8. List<int>? data,
  9. bool? is_dense,
})

Implementation

PointCloud2({
  Header? header,
  int? height,
  int? width,
  List<PointField>? fields,
  bool? is_bigendian,
  int? point_step,
  int? row_step,
  List<int>? data,
  bool? is_dense,
}):
this.header = header ?? Header(),
this.height = height ?? 0,
this.width = width ?? 0,
this.fields = fields ?? [],
this.is_bigendian = is_bigendian ?? false,
this.point_step = point_step ?? 0,
this.row_step = row_step ?? 0,
this.data = data ?? [],
this.is_dense = is_dense ?? false;