toGrid method

HGrid toGrid()

Implementation

HGrid toGrid() {
  // meta
  HDict meta = this._meta.toDict();

  // cols
  List<HCol> hcols = <HCol>[];
  for (int i = 0; i < _cols.length; ++i) {
    BCol bc = _cols[i];
    hcols.add(HCol(i, bc.name, bc.meta.toDict()));
  }

  // let HGrid constructor do the rest...
  return HGrid(meta, hcols, _rows);
}