Unverified Commit 2a010d96 authored by Swift Kim's avatar Swift Kim Committed by GitHub

[flutter_tools] Make variants of Pub have consistent method signatures (#98119)

parent 76855aa8
...@@ -96,7 +96,7 @@ abstract class Pub { ...@@ -96,7 +96,7 @@ abstract class Pub {
/// Defaults to true. /// Defaults to true.
Future<void> get({ Future<void> get({
required PubContext context, required PubContext context,
String directory, String? directory,
bool skipIfAbsent = false, bool skipIfAbsent = false,
bool upgrade = false, bool upgrade = false,
bool offline = false, bool offline = false,
...@@ -122,11 +122,11 @@ abstract class Pub { ...@@ -122,11 +122,11 @@ abstract class Pub {
Future<void> batch( Future<void> batch(
List<String> arguments, { List<String> arguments, {
required PubContext context, required PubContext context,
String directory, String? directory,
MessageFilter filter, MessageFilter? filter,
String failureMessage = 'pub failed', String failureMessage = 'pub failed',
required bool retry, required bool retry,
bool showTraceForErrors, bool? showTraceForErrors,
}); });
/// Runs pub in 'interactive' mode. /// Runs pub in 'interactive' mode.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment