Revert "Enable avoid_redundant_argument_values lint (#91409)" (#91461)

This reverts commit 5fd259be24.
This commit is contained in:
Zachary Anderson
2021-10-07 21:11:07 -07:00
committed by GitHub
parent 5fd259be24
commit b9d2177da0
667 changed files with 3385 additions and 1693 deletions

View File

@@ -10,7 +10,8 @@ import 'test_step.dart';
Future<TestStepResult> methodCallJsonSuccessHandshake(dynamic payload) async {
const MethodChannel channel =
MethodChannel('json-method', JSONMethodCodec());
return _methodCallSuccessHandshake('JSON success($payload)', channel, payload);
return _methodCallSuccessHandshake(
'JSON success($payload)', channel, payload);
}
Future<TestStepResult> methodCallJsonErrorHandshake(dynamic payload) async {
@@ -31,7 +32,8 @@ Future<TestStepResult> methodCallStandardSuccessHandshake(
'std-method',
StandardMethodCodec(ExtendedStandardMessageCodec()),
);
return _methodCallSuccessHandshake('Standard success($payload)', channel, payload);
return _methodCallSuccessHandshake(
'Standard success($payload)', channel, payload);
}
Future<TestStepResult> methodCallStandardErrorHandshake(dynamic payload) async {
@@ -39,7 +41,8 @@ Future<TestStepResult> methodCallStandardErrorHandshake(dynamic payload) async {
'std-method',
StandardMethodCodec(ExtendedStandardMessageCodec()),
);
return _methodCallErrorHandshake('Standard error($payload)', channel, payload);
return _methodCallErrorHandshake(
'Standard error($payload)', channel, payload);
}
Future<TestStepResult> methodCallStandardNotImplementedHandshake() async {
@@ -47,7 +50,8 @@ Future<TestStepResult> methodCallStandardNotImplementedHandshake() async {
'std-method',
StandardMethodCodec(ExtendedStandardMessageCodec()),
);
return _methodCallNotImplementedHandshake('Standard notImplemented()', channel);
return _methodCallNotImplementedHandshake(
'Standard notImplemented()', channel);
}
Future<TestStepResult> _methodCallSuccessHandshake(
@@ -85,7 +89,8 @@ Future<TestStepResult> _methodCallErrorHandshake(
final List<dynamic> received = <dynamic>[];
channel.setMethodCallHandler((MethodCall call) async {
received.add(call.arguments);
throw PlatformException(code: 'error', details: arguments);
throw PlatformException(
code: 'error', message: null, details: arguments);
});
dynamic errorDetails = nothing;
dynamic error = nothing;