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

This commit is contained in:
Swift Kim
2022-02-11 17:45:20 +09:00
committed by GitHub
parent 76855aa893
commit 2a010d9673

View File

@@ -96,7 +96,7 @@ abstract class Pub {
/// Defaults to true.
Future<void> 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<void> batch(
List<String> 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.