rollCamp method

int rollCamp(
  1. int rollCount,
  2. dynamic courierFunc
)

Start developing camp roll function Eventually campRoll handles all these others: init-open-close-schedule.. campRoll call, by: mission_test, dawo_example

Implementation

int rollCamp(int rollCount, var courierFunc) {
  _flowC('    -->--->  :M:camp:$name  opRoll    * * * *  * * * * *  ', _pB);
  _flowC('    :camp:Roll:-info: RunInitOpen, &; close & report. >>', _pB);
  _flowC('>>  :camp: INFO : operationsa are outside chore-world.', _pB);
  int __counter = 0;
  _flowC('-->>-->>--  :campR: calling :connector:  -->>-->>--', _pB);

  ///  devl:MIS  C:PING:all: C:BIND:all  re :command:s :bind: :bing:
  ///  Eventually close this connector act inside below loop.
  String connectorMsg =
      ':camp:R: C:PING:all: C:BIND:all :CLIENT :GRANT :N:47345 :VALID 3day';
  //
  connector.join(name, placardM, connectorMsg, name);
  connector.roll();

  //  PLAN: loop inside this function to include #camp and #courier
  for (var i = 0; i < rollCount; i++) {
    __counter++;

    ///  Code: Check feedback from environment; something changed?
    ///  #courier brings something from outside world.
    courierFunc();
  }
  print('-1:run  2:print-cf---3: print:courier:Func.runtimeType- ------');
  Map<String, String> courierM = {
    '1-2 ': '-1:run  2:print-cf--',
    '3:  ': '- print:courier:Func.runtimeType-',
  };
  //
  List<String> courierL = [];
  courierL.addAll(infoBox(courierM, 8, 35, 29));
  courierL.forEach(print);

  ///  #LEARN:  courier function output:
  print(courierFunc()); //  null
  print(courierFunc); //  Closure: () => void
  print(courierFunc.runtimeType); //  () => void
  print('----- :courier: ------------- \n');
  print(':camp:Roll: :courier:func:  :');

  _flowC('    <---<--  :camp:roll:  Counter: $__counter   * * *', _pB);
  return __counter;
}