construct method

void construct(
  1. String _caller,
  2. String _GlbBufName
)

Build matrix with top, left, bot Too bad that users have to call both init and construct and... Find all calls, to quarantee name q12 length

Implementation

void construct(String _caller, String _GlbBufName) {
  caller = _caller; //  save it to upper level variable.
  name = _caller; //  and to name.
  //&  TODO bufName ??  Quarantee to 12 width
  String _s20 = _GlbBufName.padRight(20, ' ');
  _bufName = _s20;

  for (var z = 1; z < _matrix.length - 1; z++) {
    //  do not handle first row.
    _fakeRow++;
    String _fakeRowS = _fakeRow.toString().substring(1, 3);
    ///  choose nice background mark for matrix.
    //  pad with low-density mark.   NO: '-'
    _matrix[z] = '$_fakeRowS '.padRight(sw, pm);
  }
  ; //  <=  ;  dartFormatter is sometimes funny
  ///  should  get #name in the middle of first line,
  boxNumS = boxNum.toString();
  ///
  String m0ro = ':boxServe:nr: $boxNumS  :cib: $_caller   ';
  //  no used  int m0roI = m0ro.length;
  String m0row = m0ro.padRight(sw, pm);
  ///  should produce String:  'DAWO 0.9.9'
  //  String logoS = '$dawoApp.name $dawoApp.version';
  _matrix[0] = m0row;
  ///
  String _timeNow = tl.stampDateTimePlain();
  aHeader(0, sw - 57, 'time: $_timeNow');
  String _version = dawoApp.version; //  1.1.1
  aHeader(0, sw - 27, 'Dartlang app  DAWO $_version ');
  //  TODO  StampLeft ' '  // there is pm ! = ' '
  ///  Last row of matrix for range-10 marks; NOTE: rc - 1
  ///  Made bRowLon a little longer.
  String bRowLong =
      '---------10--------20--------30--------40--------50--------60--------70--------80--------90--------00--------10--------20--------30--------40--------50--------60--------70--------80--------90--------00--------10--------20----';
  String bRow = bRowLong.substring(0, sw);
  _matrix[rc - 1] = bRow;
  //   '---------10--------20--------30---------40---------50---------60---------70---------80---------90---------00---------10---------20---------30---------40---------50---------60---------70';

  //  howTo NULL  OK Watch This if it works  logM[boxNumS].addAll([name, 'CTRCT']);
  logM[boxNumS]!.addAll([name, 'CTRCT']);
}