This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static const String _flowStreamDelimiter = '\n\n'; | |
| static StreamFlowResponse<O, S> streamFlow<O, S>({ | |
| required String url, | |
| dynamic input, | |
| Map<String, String>? headers, | |
| }) { | |
| // Create a StreamController to manage the stream of messages | |
| final controller = StreamController<S>(); |