Enable use_function_type_syntax_for_parameters lint (#77163)
This commit is contained in:
committed by
GitHub
parent
8f9c6af2dd
commit
7b251f5f37
@@ -30,7 +30,7 @@ final List<String> baseApkFiles = <String> [
|
||||
];
|
||||
|
||||
/// Runs the given [testFunction] on a freshly generated Flutter project.
|
||||
Future<void> runProjectTest(Future<void> testFunction(FlutterProject project)) async {
|
||||
Future<void> runProjectTest(Future<void> Function(FlutterProject project) testFunction) async {
|
||||
final Directory tempDir = Directory.systemTemp.createTempSync('flutter_devicelab_gradle_plugin_test.');
|
||||
final FlutterProject project = await FlutterProject.create(tempDir, 'hello');
|
||||
|
||||
@@ -42,7 +42,7 @@ Future<void> runProjectTest(Future<void> testFunction(FlutterProject project)) a
|
||||
}
|
||||
|
||||
/// Runs the given [testFunction] on a freshly generated Flutter plugin project.
|
||||
Future<void> runPluginProjectTest(Future<void> testFunction(FlutterPluginProject pluginProject)) async {
|
||||
Future<void> runPluginProjectTest(Future<void> Function(FlutterPluginProject pluginProject) testFunction) async {
|
||||
final Directory tempDir = Directory.systemTemp.createTempSync('flutter_devicelab_gradle_plugin_test.');
|
||||
final FlutterPluginProject pluginProject = await FlutterPluginProject.create(tempDir, 'aaa');
|
||||
|
||||
@@ -54,7 +54,7 @@ Future<void> runPluginProjectTest(Future<void> testFunction(FlutterPluginProject
|
||||
}
|
||||
|
||||
/// Runs the given [testFunction] on a freshly generated Flutter module project.
|
||||
Future<void> runModuleProjectTest(Future<void> testFunction(FlutterModuleProject moduleProject)) async {
|
||||
Future<void> runModuleProjectTest(Future<void> Function(FlutterModuleProject moduleProject) testFunction) async {
|
||||
final Directory tempDir = Directory.systemTemp.createTempSync('flutter_devicelab_gradle_module_test.');
|
||||
final FlutterModuleProject moduleProject = await FlutterModuleProject.create(tempDir, 'hello_module');
|
||||
|
||||
|
||||
@@ -514,7 +514,7 @@ Future<String> findJavaHome() async {
|
||||
return path.dirname(path.dirname(javaBinary));
|
||||
}
|
||||
|
||||
Future<T> inDirectory<T>(dynamic directory, Future<T> action()) async {
|
||||
Future<T> inDirectory<T>(dynamic directory, Future<T> Function() action) async {
|
||||
final String previousCwd = cwd;
|
||||
try {
|
||||
cd(directory);
|
||||
@@ -629,7 +629,7 @@ Iterable<String> grep(Pattern pattern, {@required String from}) {
|
||||
/// } catch (error, chain) {
|
||||
///
|
||||
/// }
|
||||
Future<void> runAndCaptureAsyncStacks(Future<void> callback()) {
|
||||
Future<void> runAndCaptureAsyncStacks(Future<void> Function() callback) {
|
||||
final Completer<void> completer = Completer<void>();
|
||||
Chain.capture(() async {
|
||||
await callback();
|
||||
|
||||
Reference in New Issue
Block a user