enable lint prefer_equal_for_default_values (#18156)
diff --git a/packages/flutter_tools/test/src/mocks.dart b/packages/flutter_tools/test/src/mocks.dart
index de59e59..fe732a9 100644
--- a/packages/flutter_tools/test/src/mocks.dart
+++ b/packages/flutter_tools/test/src/mocks.dart
@@ -38,10 +38,10 @@
/// An SDK installation with several SDK levels (19, 22, 23).
class MockAndroidSdk extends Mock implements AndroidSdk {
static Directory createSdkDirectory({
- bool withAndroidN: false,
+ bool withAndroidN = false,
String withNdkDir,
- bool withNdkSysroot: false,
- bool withSdkManager: true,
+ bool withNdkSysroot = false,
+ bool withSdkManager = true,
}) {
final Directory dir = fs.systemTempDirectory.createTempSync('android-sdk');
@@ -120,9 +120,9 @@
List<dynamic> command, {
String workingDirectory,
Map<String, String> environment,
- bool includeParentEnvironment: true,
- bool runInShell: false,
- ProcessStartMode mode: ProcessStartMode.NORMAL, // ignore: deprecated_member_use
+ bool includeParentEnvironment = true,
+ bool runInShell = false,
+ ProcessStartMode mode = ProcessStartMode.NORMAL, // ignore: deprecated_member_use
}) {
if (!succeed) {
final String executable = command[0];
@@ -141,11 +141,11 @@
/// A process that exits successfully with no output and ignores all input.
class MockProcess extends Mock implements Process {
MockProcess({
- this.pid: 1,
+ this.pid = 1,
Future<int> exitCode,
Stream<List<int>> stdin,
- this.stdout: const Stream<List<int>>.empty(),
- this.stderr: const Stream<List<int>>.empty(),
+ this.stdout = const Stream<List<int>>.empty(),
+ this.stderr = const Stream<List<int>>.empty(),
}) : exitCode = exitCode ?? new Future<int>.value(0),
stdin = stdin ?? new MemoryIOSink();