From 43e31f6efe2bc499632e479942384117e1382f24 Mon Sep 17 00:00:00 2001 From: YoungSeok Yoon Date: Mon, 24 Apr 2017 18:11:04 -0700 Subject: [PATCH] Fix the _retry() method signature to accept an error object The onError handler passed to the Stream's listen method is expected to take an error argument. --- lib/eventsource.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/eventsource.dart b/lib/eventsource.dart index 4683f87..6eabc3f 100644 --- a/lib/eventsource.dart +++ b/lib/eventsource.dart @@ -104,7 +104,7 @@ class EventSource extends Stream { } /// Retries until a new connection is established. Uses exponential backoff. - Future _retry() async { + Future _retry(dynamic e) async { _readyState = EventSourceReadyState.CONNECTING; // try reopening with exponential backoff Duration backoff = _retryDelay;