Index: pkg/scheduled_test/lib/src/substitute_future.dart |
diff --git a/pkg/scheduled_test/lib/src/substitute_future.dart b/pkg/scheduled_test/lib/src/substitute_future.dart |
index 4122a3ddc277492a5d994256a103064b76081750..abbb5d4f75058ab14fe2ac3ba480c12cf9e75759 100644 |
--- a/pkg/scheduled_test/lib/src/substitute_future.dart |
+++ b/pkg/scheduled_test/lib/src/substitute_future.dart |
@@ -24,9 +24,9 @@ class SubstituteFuture<T> implements Future<T> { |
} |
Stream<T> asStream() => _completer.future.asStream(); |
- Future catchError(onError(AsyncError asyncError), {bool test(error)}) => |
+ Future catchError(onError(asyncError), {bool test(error)}) => |
_completer.future.catchError(onError, test: test); |
- Future then(onValue(T value), {onError(AsyncError asyncError)}) => |
+ Future then(onValue(T value), {onError(error)}) => |
_completer.future.then(onValue, onError: onError); |
Future<T> whenComplete(action()) => _completer.future.whenComplete(action); |