Add default values for optional parameters. (#27197)

This commit is contained in:
Konstantin Scheglov
2019-01-29 11:49:57 -08:00
committed by GitHub
parent 1811d57445
commit 4fe41abfcc
18 changed files with 25 additions and 25 deletions

View File

@@ -33,7 +33,7 @@ class BuildKernelCompiler implements KernelCompiler {
List<String> fileSystemRoots,
String fileSystemScheme,
String depFilePath,
TargetModel targetModel,
TargetModel targetModel = TargetModel.flutter,
}) async {
if (fileSystemRoots != null || fileSystemScheme != null || depFilePath != null || targetModel != null || sdkRoot != null || packagesPath != null) {
printTrace('fileSystemRoots, fileSystemScheme, depFilePath, targetModel,'

View File

@@ -784,7 +784,7 @@ class NotifyingLogger extends Logger {
String message, {
@required Duration timeout,
String progressId,
bool multilineOutput,
bool multilineOutput = false,
int progressIndicatorPadding = kDefaultStatusPadding,
}) {
assert(timeout != null);
@@ -961,8 +961,8 @@ class _AppRunLogger extends Logger {
String message, {
@required Duration timeout,
String progressId,
bool multilineOutput,
int progressIndicatorPadding = 52,
bool multilineOutput = false,
int progressIndicatorPadding = kDefaultStatusPadding,
}) {
assert(timeout != null);
final int id = _nextProgressId++;

View File

@@ -185,7 +185,7 @@ class FuchsiaDevice extends Device {
Map<String, dynamic> platformArgs,
bool prebuiltApplication = false,
bool applicationNeedsRebuild = false,
bool usesTerminalUi = false,
bool usesTerminalUi = true,
bool ipv6 = false,
}) => Future<void>.error('unimplemented');