diff --git a/lib/support/async.dart b/lib/support/async.dart index e20a2600..875e750f 100644 --- a/lib/support/async.dart +++ b/lib/support/async.dart @@ -25,11 +25,11 @@ const defaultTimeout = const Duration(seconds: 5); const clock = const Clock(); -Future/**/ waitFor/**/(/*=T*/ condition(), +Future waitFor(T condition(), {matcher: null, Duration timeout: defaultTimeout, Duration interval: defaultInterval}) => - clock.waitFor/**/(condition, + clock.waitFor(condition, matcher: matcher, timeout: timeout, interval: interval); class Clock { @@ -50,7 +50,7 @@ class Clock { /// is returned. Otherwise, if [condition] throws, then that exception is /// rethrown. If [condition] doesn't throw then an [expect] exception is /// thrown. - Future/**/ waitFor/**/(/*=T*/ condition(), + Future waitFor(T condition(), {matcher: null, Duration timeout: defaultTimeout, Duration interval: defaultInterval}) async { diff --git a/pubspec.yaml b/pubspec.yaml index 5004517f..93b25146 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -6,7 +6,7 @@ description: > and as such, require the use of the WebDriver remote server. homepage: https://github.com/google/webdriver.dart environment: - sdk: '>=1.10.0 <2.0.0' + sdk: '>=1.21.0 <2.0.0' dependencies: archive: '^1.0.20' matcher: '^0.12.0+1'