diff --git a/script/tool/test/util.dart b/script/tool/test/util.dart index 5c38bd5f70..b0a8990e13 100644 --- a/script/tool/test/util.dart +++ b/script/tool/test/util.dart @@ -319,14 +319,14 @@ String _pluginPlatformSection( return entry; } -typedef _ErrorHandler = void Function(Error error); +typedef ErrorHandler = void Function(Error error); /// Run the command [runner] with the given [args] and return /// what was printed. /// A custom [errorHandler] can be used to handle the runner error as desired without throwing. Future<List<String>> runCapturingPrint( CommandRunner<void> runner, List<String> args, - {_ErrorHandler? errorHandler}) async { + {ErrorHandler? errorHandler}) async { final List<String> prints = <String>[]; final ZoneSpecification spec = ZoneSpecification( print: (_, __, ___, String message) {