presentStreamBase method

void presentStreamBase()

basic stream example...

Implementation

void presentStreamBase() {
  var _data = intList; // some sample data
  var _psbStream = new Stream.fromIterable(_data); // create the stream

  // subscribe to the streams events
  _psbStream.listen((value) {
    //
    print("---   presentStreamBase   ---");
    print("Received: $value"); // onData handler
    print("---         ok            --- \n");
  });
  //NOTE: using name: stream, gives you too wide amount of values- Study this:
  // _psbStream.   contrary to using:   stream
}