diff --git a/packages/flutter_tools/lib/src/compile.dart b/packages/flutter_tools/lib/src/compile.dart index dfab8d34e4..73483700dc 100644 --- a/packages/flutter_tools/lib/src/compile.dart +++ b/packages/flutter_tools/lib/src/compile.dart @@ -19,10 +19,10 @@ KernelCompiler get kernelCompiler => context[KernelCompiler]; typedef void CompilerMessageConsumer(String message); class CompilerOutput { - String outputFilename; - int errorCount; + final String outputFilename; + final int errorCount; - CompilerOutput(this.outputFilename, this.errorCount); + const CompilerOutput(this.outputFilename, this.errorCount); } class _StdoutHandler { @@ -65,8 +65,8 @@ class _StdoutHandler { class KernelCompiler { const KernelCompiler(); - Future compile( - {String sdkRoot, + Future compile({ + String sdkRoot, String mainPath, String outputFilePath, String depFilePath, @@ -78,7 +78,8 @@ class KernelCompiler { String incrementalCompilerByteStorePath, String packagesPath, List fileSystemRoots, - String fileSystemScheme}) async { + String fileSystemScheme, + }) async { final String frontendServer = artifacts.getArtifactPath( Artifact.frontendServerSnapshotForEngineDartSdk );