enable lint prefer_equal_for_default_values (#18156)

This commit is contained in:
Alexandre Ardhuin
2018-06-05 08:50:40 +02:00
committed by GitHub
parent 6be81ebf9b
commit 09276bea25
390 changed files with 1920 additions and 1920 deletions

View File

@@ -41,8 +41,8 @@ typedef void ContextInitializer(AppContext testContext);
@isTest
void testUsingContext(String description, dynamic testMethod(), {
Timeout timeout,
Map<Type, Generator> overrides: const <Type, Generator>{},
bool initializeFlutterRoot: true,
Map<Type, Generator> overrides = const <Type, Generator>{},
bool initializeFlutterRoot = true,
String testOn,
bool skip, // should default to `false`, but https://github.com/dart-lang/test/issues/545 doesn't allow this
}) {

View File

@@ -38,10 +38,10 @@ class MockApplicationPackageStore extends ApplicationPackageStore {
/// 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 @@ class MockProcessManager implements ProcessManager {
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 @@ class MockProcessManager implements ProcessManager {
/// 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();