EventSource(String url, {withCredentials: false})

Source

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