From 2a010d9673e63d11b81e02603be9ccc0ec13f7b1 Mon Sep 17 00:00:00 2001 From: Swift Kim Date: Fri, 11 Feb 2022 17:45:20 +0900 Subject: [PATCH] [flutter_tools] Make variants of Pub have consistent method signatures (#98119) --- packages/flutter_tools/lib/src/dart/pub.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/flutter_tools/lib/src/dart/pub.dart b/packages/flutter_tools/lib/src/dart/pub.dart index 174458af5c..c1c3d824e4 100644 --- a/packages/flutter_tools/lib/src/dart/pub.dart +++ b/packages/flutter_tools/lib/src/dart/pub.dart @@ -96,7 +96,7 @@ abstract class Pub { /// Defaults to true. Future get({ required PubContext context, - String directory, + String? directory, bool skipIfAbsent = false, bool upgrade = false, bool offline = false, @@ -122,11 +122,11 @@ abstract class Pub { Future batch( List arguments, { required PubContext context, - String directory, - MessageFilter filter, + String? directory, + MessageFilter? filter, String failureMessage = 'pub failed', required bool retry, - bool showTraceForErrors, + bool? showTraceForErrors, }); /// Runs pub in 'interactive' mode.