prefer_initializing_formals (#8797)

This commit is contained in:
Alexandre Ardhuin
2017-03-15 18:30:55 +01:00
committed by GitHub
parent f8238185cc
commit a9ba0e2f88
27 changed files with 66 additions and 97 deletions

View File

@@ -298,13 +298,12 @@ class _DevFSHttpWriter {
class DevFS {
/// Create a [DevFS] named [fsName] for the local files in [directory].
DevFS(VMService serviceProtocol,
String fsName,
this.fsName,
this.rootDirectory, {
String packagesFilePath
})
: _operations = new ServiceProtocolDevFSOperations(serviceProtocol),
_httpWriter = new _DevFSHttpWriter(fsName, serviceProtocol),
fsName = fsName {
_httpWriter = new _DevFSHttpWriter(fsName, serviceProtocol) {
_packagesFilePath =
packagesFilePath ?? fs.path.join(rootDirectory.path, kPackagesFileName);
}