init method

void init()
override

Initialize class for ready-to-use: Method for setting class field values.

Implementation

void init() {
  _flowC('--> C-init $name  -->---->--', _pB);

  //  howTo NULL  Map
  //  extra['init'] ++;
  //  hklTry NO  extra!['init']! ++;
  //  NO  extra!['init'] ++?;
  //  Map<String, int> extra  'init': 0,
  //  howTo Map:  only 4 properties usable   extra.['init'].
  //  TODO  hkl:  find in tour dartlang
  //  https://stackoverflow.com/questions/56943363/dart-map-increment-the-value-of-a-key
  //  from Punch::
  if(extra.containsKey('init') ) {
    //  TODO howToMap increment
    int _i = 0;
    //  howTo Null Map
    _i = extra['init']!;
    extra['init'] = _i;
    //  extra['init']!++;
  }  //  --  if

  // extra['init'].toInt()++;
  //  extra['init']! ++;
  //  extra['init'] =  33;

  String __name = name.toUpperCase();
  String _name = ':$__name :';
  //  Actor in glb has not any use.
  glb.changeActor(_name);
  _flowC('-->  Chore buffer output initialized  -->---->--', _pB);
  buf.writeln(':ch:buf: init for name: $name done');
  //  Set-fields values done.
  _flowC('<-- ch init done  $name --<----<--', _pB);
}