Enable use_function_type_syntax_for_parameters lint (#77163)

This commit is contained in:
Michael Goderbauer
2021-03-04 08:59:17 -08:00
committed by GitHub
parent 8f9c6af2dd
commit 7b251f5f37
68 changed files with 119 additions and 119 deletions

View File

@@ -7,7 +7,7 @@ import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter_test/flutter_test.dart';
Future<void> testExecutable(FutureOr<void> testMain()) async {
Future<void> testExecutable(FutureOr<void> Function() testMain) async {
reportTestException = (FlutterErrorDetails details, String testDescription) {
expect(details.exception, isA<StateError>());
expect((details.exception as StateError).message, 'foo');

View File

@@ -52,7 +52,7 @@ void main() {
return path.replaceAll('/', fs.path.separator);
}
void test(String description, FutureOr<void> body()) {
void test(String description, FutureOr<void> Function() body) {
test_package.test(description, () async {
await io.IOOverrides.runZoned<FutureOr<void>>(
body,

View File

@@ -4,7 +4,7 @@
import 'dart:async';
Future<void> testExecutable(FutureOr<void> testMain()) async {
Future<void> testExecutable(FutureOr<void> Function() testMain) async {
await runZoned<dynamic>(testMain, zoneValues: <Type, String>{
String: '/test_config',
});

View File

@@ -4,7 +4,7 @@
import 'dart:async';
Future<void> testExecutable(FutureOr<void> testMain()) async {
Future<void> testExecutable(FutureOr<void> Function() testMain) async {
await runZoned<dynamic>(testMain, zoneValues: <Type, dynamic>{
String: '/test_config/nested_config',
int: 123,