rollStream method

void rollStream(
  1. String _cl
)

calling beta demandStream, elementary Stream example TODO Make usage of this async and somebody to wait it. #TODO make this use #iterable parameter; dev.admN / where #ALL Usage: roll-method above.

Implementation

void rollStream(String _cl) {
  _flowC('--- :stream:beg dawoApp rollStream started by: $_cl    ---', _pB);
  // demandStream('dawoApp', ['34 TIMES', 'No any times', 'Occasionally 7 times'], 'appListener' );
  //  calling it with dawoApp class properties
  store.demandStream(
      //  [agenda, msg, develop, version] don't work anymore: hklTry: pack
      ':dawoApp:river:',
      tl.mapToList(package),
      'appListener');

  ///  calling stream on dev.admN list certain items:
  ///  insertAll(int index, Iterable<E> iterable) → void
  ///  Create List, that is used in Stream.
  List<String> _queryL = ['* First _queryL item *'];

  //  TODO  find #Lang #word's function, make it.
  for (var x = 0; x < dev.admN.length; x++) {
    //  HealthIssue:  line 340 col 11: Use contains instead of indexOf
    if (dev.admN[x].contains('schedule')) {
      _queryL.add(dev.admN[x]);
    }
  }
  //  When using : StrInList in tools:
  //  _queryL.addAll(tl.StrInList(dev.admN, 'schedule'));
  //  store demandStream acts nicely with 0-length list
  store.demandStream(':dawoApp:river:ADM:', _queryL, 'appListener');
  //  TODO Stream: meaningful : streams from doneL / devN important
  _flowC('--- :stream:end dawoApp rollStream done  by: $_cl    ---', _pB);
}