EventSource 构造函数

EventSource(
  1. String url,
  2. {dynamic withCredentials = false}
)

实现

factory EventSource(String url, {withCredentials = false}) {
  var parsedOptions = {
    'withCredentials': withCredentials,
  };
  return EventSource._factoryEventSource(url, parsedOptions);
}