Handler.stream constructor
Handler.stream()
Implementation
factory Handler.stream(
String path,
Stream<Map<String, dynamic>> Function(
RequestContext context, Map<String, dynamic> body)
createJsonStream) {
return Handler(
path: path,
onRequest: eventSourceHandler(createJsonStream: createJsonStream),
);
}