presentStreamBase method
void
presentStreamBase()
basic stream example...
Implementation
void presentStreamBase() {
var _data = intList; // some sample data
Stream _psbStream = Stream.fromIterable(_data); // create the stream
// subscribe to the streams events
_psbStream.listen((value) {
//
print("--- presentStreamBase ---");
print("Received: $value"); // onData handler
print("--- ok --- \n");
});
// howTo:Stream: using name: stream, gives you too wide amount of values- Study this:
// _psbStream. contrary to using: stream
}