streamController = new StreamController( To send data, use add method with the data as the argument . streamController. add(“This a test data”); If error occurs, instead of sending data, you can send error by using addError method.
streamController = new StreamController( To send data, use add method with the data as the argument . streamController. add(“This a test data”); If error occurs, instead of sending data, you can send error by using addError method.