| OLD | NEW |
| 1 | 1 |
| 2 class EventSource native "EventSource" { | 2 class EventSource native "EventSource" { |
| 3 | 3 |
| 4 String URL; | 4 String URL; |
| 5 | 5 |
| 6 EventListener onerror; | |
| 7 | |
| 8 EventListener onmessage; | |
| 9 | |
| 10 EventListener onopen; | |
| 11 | |
| 12 int readyState; | 6 int readyState; |
| 13 | 7 |
| 14 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 8 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
| 15 | 9 |
| 16 void close() native; | 10 void close() native; |
| 17 | 11 |
| 18 bool dispatchEvent(Event evt) native; | 12 bool dispatchEvent(Event evt) native; |
| 19 | 13 |
| 20 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 14 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
| 21 | 15 |
| 22 var dartObjectLocalStorage; | 16 var dartObjectLocalStorage; |
| 23 | 17 |
| 24 String get typeName() native; | 18 String get typeName() native; |
| 25 } | 19 } |
| OLD | NEW |