saveToGLB method

void saveToGLB()

Called by: show() toGLB-Buffer. Save boxServe matrix to glb-buffers

Implementation

void saveToGLB() {
  String boxNumS = boxNum.toString();
  _bufName = '$_bufName $boxNumS';
  StringBuffer saveBuffer = toBuffer();
  String sbl = saveBuffer.length.toString();
  //  spamming,  away:  Name:::  $name
  print(
      '  bufName::  $_bufName      boxNumS:::  $boxNumS     BufLength::: $sbl');

  ///  _bufName is combination of '$caller $boxNum.toString()'
  glb.boxServeBuffers.putIfAbsent(_bufName, () => saveBuffer);
  //  TODO  result:  N_added,  length_now
  print('-<<---saveToGLB  done    ----<<-----  ');
  // OK     howTo NULL   add null check ! to the tarrget
  logM[boxNumS]!.add('svGLB');
}