unnecessary this in field initializers (#22522)
This commit is contained in:
committed by
GitHub
parent
4bd6ad7395
commit
5de96bb734
@@ -32,7 +32,7 @@ String get javaPath => androidStudio?.javaPath;
|
||||
class AndroidStudio implements Comparable<AndroidStudio> {
|
||||
AndroidStudio(this.directory,
|
||||
{Version version, this.configured, this.studioAppName = 'AndroidStudio'})
|
||||
: this.version = version ?? Version.unknown {
|
||||
: version = version ?? Version.unknown {
|
||||
_init();
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ class FlutterDevice {
|
||||
this.fileSystemRoots,
|
||||
this.fileSystemScheme,
|
||||
ResidentCompiler generator,
|
||||
}) : this.generator = generator ?? ResidentCompiler(
|
||||
}) : generator = generator ?? ResidentCompiler(
|
||||
artifacts.getArtifactPath(Artifact.flutterPatchedSdkPath),
|
||||
trackWidgetCreation: trackWidgetCreation,
|
||||
fileSystemRoots: fileSystemRoots, fileSystemScheme: fileSystemScheme
|
||||
|
||||
@@ -9,7 +9,7 @@ import 'watcher.dart';
|
||||
|
||||
/// Prints JSON events when running a test in --machine mode.
|
||||
class EventPrinter extends TestWatcher {
|
||||
EventPrinter({StringSink out}) : this._out = out == null ? stdout: out;
|
||||
EventPrinter({StringSink out}) : _out = out == null ? stdout: out;
|
||||
|
||||
final StringSink _out;
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ const bool _includeInsiders = false;
|
||||
|
||||
class VsCode {
|
||||
VsCode._(this.directory, this.extensionDirectory, { Version version, this.edition })
|
||||
: this.version = version ?? Version.unknown {
|
||||
: version = version ?? Version.unknown {
|
||||
|
||||
if (!fs.isDirectorySync(directory)) {
|
||||
_validationMessages.add('VS Code not found at $directory');
|
||||
@@ -195,7 +195,7 @@ class VsCode {
|
||||
|
||||
class _VsCodeInstallLocation {
|
||||
const _VsCodeInstallLocation(this.installPath, this.extensionsFolder, { this.edition, bool isInsiders })
|
||||
: this.isInsiders = isInsiders ?? false;
|
||||
: isInsiders = isInsiders ?? false;
|
||||
final String installPath;
|
||||
final String extensionsFolder;
|
||||
final String edition;
|
||||
|
||||
@@ -24,7 +24,7 @@ const Duration quitTimeout = Duration(seconds: 10);
|
||||
|
||||
class FlutterTestDriver {
|
||||
FlutterTestDriver(this._projectFolder, {String logPrefix}):
|
||||
this._logPrefix = logPrefix != null ? '$logPrefix: ' : '';
|
||||
_logPrefix = logPrefix != null ? '$logPrefix: ' : '';
|
||||
|
||||
final Directory _projectFolder;
|
||||
final String _logPrefix;
|
||||
|
||||
Reference in New Issue
Block a user