enable lint prefer_equal_for_default_values (#18156)
diff --git a/packages/flutter_tools/lib/src/vmservice.dart b/packages/flutter_tools/lib/src/vmservice.dart
index 642c174..88420de 100644
--- a/packages/flutter_tools/lib/src/vmservice.dart
+++ b/packages/flutter_tools/lib/src/vmservice.dart
@@ -178,7 +178,7 @@
/// See: https://github.com/dart-lang/sdk/commit/df8bf384eb815cf38450cb50a0f4b62230fba217
static Future<VMService> connect(
Uri httpUri, {
- Duration requestTimeout: kDefaultRequestTimeout,
+ Duration requestTimeout = kDefaultRequestTimeout,
ReloadSources reloadSources,
}) async {
final Uri wsUri = httpUri.replace(scheme: 'ws', path: fs.path.join(httpUri.path, 'ws'));
@@ -774,9 +774,9 @@
/// If `timeoutFatal` is false, then a timeout will result in a null return
/// value. Otherwise, it results in an exception.
Future<Map<String, dynamic>> invokeRpcRaw(String method, {
- Map<String, dynamic> params: const <String, dynamic>{},
+ Map<String, dynamic> params = const <String, dynamic>{},
Duration timeout,
- bool timeoutFatal: true,
+ bool timeoutFatal = true,
}) async {
printTrace('$method: $params');
@@ -804,7 +804,7 @@
/// Invoke the RPC and return a [ServiceObject] response.
Future<ServiceObject> invokeRpc(String method, {
- Map<String, dynamic> params: const <String, dynamic>{},
+ Map<String, dynamic> params = const <String, dynamic>{},
Duration timeout,
}) async {
final Map<String, dynamic> response = await invokeRpcRaw(
@@ -1043,7 +1043,7 @@
Future<Map<String, dynamic>> invokeRpcRaw(String method, {
Map<String, dynamic> params,
Duration timeout,
- bool timeoutFatal: true,
+ bool timeoutFatal = true,
}) {
// Inject the 'isolateId' parameter.
if (params == null) {
@@ -1087,7 +1087,7 @@
static const int kIsolateReloadBarred = 1005;
Future<Map<String, dynamic>> reloadSources(
- { bool pause: false,
+ { bool pause = false,
Uri rootLibUri,
Uri packagesUri}) async {
try {
@@ -1178,7 +1178,7 @@
String method, {
Map<String, dynamic> params,
Duration timeout,
- bool timeoutFatal: true,
+ bool timeoutFatal = true,
}
) async {
try {