Enable use_function_type_syntax_for_parameters lint (#77163)
This commit is contained in:
committed by
GitHub
parent
8f9c6af2dd
commit
7b251f5f37
@@ -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