EventSource 构造函数
- String url, {
- dynamic withCredentials = false,
实现
factory EventSource(String url, {withCredentials = false}) {
var parsedOptions = {
'withCredentials': withCredentials,
};
return EventSource._factoryEventSource(url, parsedOptions);
}