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

@@ -179,7 +179,7 @@ Matcher containsIgnoringWhitespace(String toSearch) {
/// system temporary directory are deleted after each test by calling
/// `LocalFileSystem.dispose()`.
@isTest
void test(String description, FutureOr<void> body(), {
void test(String description, FutureOr<void> Function() body, {
String testOn,
Timeout timeout,
dynamic skip,
@@ -213,7 +213,7 @@ void test(String description, FutureOr<void> body(), {
///
/// For more information, see https://github.com/flutter/flutter/issues/47161
@isTest
void testWithoutContext(String description, FutureOr<void> body(), {
void testWithoutContext(String description, FutureOr<void> Function() body, {
String testOn,
Timeout timeout,
dynamic skip,

View File

@@ -56,7 +56,7 @@ typedef ContextInitializer = void Function(AppContext testContext);
@isTest
void testUsingContext(
String description,
dynamic testMethod(), {
dynamic Function() testMethod, {
Map<Type, Generator> overrides = const <Type, Generator>{},
bool initializeFlutterRoot = true,
String testOn,