init method
Initialize measure values by parameters TODO set min-max-maxWidthString values Min rows is 4 !! Min width is NOW: 55= NO!! 65 = YES!!
Implementation
void init(int h, int w, String _pm) {
boxNum++;
boxNumS = boxNum.toString();
// if boxes forgot to run DONE !!
// line 60 col 9: Use isNotEmpty instead of length
if (_matrix.isNotEmpty) {
print('* * * * :DEBUG:BUG: _matrix length > 0 * * * * * * * * * * * ');
}
pm = _pm; // padMark
/// Use default, unless parameters are > 0
if ((h > 0) && (w > 0)) {
rc = h;
sw = w;
}
verticalLineL.addAll(tl.strToList('|', rc - 2));
String rowS = ' '.padRight(sw);
for (var x = 0; x < rc; x++) {
// add to matrix rc items.
_matrix.add(rowS);
}
logM.putIfAbsent(boxNumS, () => ['$boxNumS INIT']);
}