diff --git a/lib/src/chain.dart b/lib/src/chain.dart index 602b90c092b58..48ac2d9d60fad 100644 --- a/lib/src/chain.dart +++ b/lib/src/chain.dart @@ -73,7 +73,7 @@ class Chain implements StackTrace { /// /// If [callback] returns a value, it will be returned by [capture] as well. static T capture(T Function() callback, - {void Function(Object error, Chain) onError, + {void Function(dynamic error, Chain) onError, bool when = true, bool errorZone = true}) { if (!errorZone && onError != null) {