forked from firka/flutter
Enable strict_top_level_inference (#160674)
Only observation: It forces a type on `_` parameters.
This commit is contained in:
committed by
GitHub
parent
d9e5a5c21d
commit
7df127b1ee
@@ -808,7 +808,7 @@ class _DropdownMenuState<T> extends State<DropdownMenu<T>> {
|
||||
return result;
|
||||
}
|
||||
|
||||
void handleUpKeyInvoke(_) {
|
||||
void handleUpKeyInvoke(_ArrowUpIntent _) {
|
||||
setState(() {
|
||||
if (!widget.enabled || !_menuHasEnabledItem || !_controller.isOpen) {
|
||||
return;
|
||||
@@ -828,7 +828,7 @@ class _DropdownMenuState<T> extends State<DropdownMenu<T>> {
|
||||
});
|
||||
}
|
||||
|
||||
void handleDownKeyInvoke(_) {
|
||||
void handleDownKeyInvoke(_ArrowDownIntent _) {
|
||||
setState(() {
|
||||
if (!widget.enabled || !_menuHasEnabledItem || !_controller.isOpen) {
|
||||
return;
|
||||
|
||||
@@ -1305,7 +1305,7 @@ class _ZoomEnterTransitionPainter extends SnapshotPainter {
|
||||
fade.addListener(notifyListeners);
|
||||
}
|
||||
|
||||
void _onStatusChange(_) {
|
||||
void _onStatusChange(AnimationStatus _) {
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
@@ -1414,7 +1414,7 @@ class _ZoomExitTransitionPainter extends SnapshotPainter {
|
||||
animation.addStatusListener(_onStatusChange);
|
||||
}
|
||||
|
||||
void _onStatusChange(_) {
|
||||
void _onStatusChange(AnimationStatus _) {
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
import 'dart:io';
|
||||
import 'dart:isolate';
|
||||
|
||||
import 'package:file/file.dart';
|
||||
import 'package:file/local.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
@@ -168,11 +169,11 @@ dynamic testInvalidError(int square) {
|
||||
}
|
||||
}
|
||||
|
||||
String? testDebugName(_) {
|
||||
String? testDebugName(void _) {
|
||||
return Isolate.current.debugName;
|
||||
}
|
||||
|
||||
int? testReturnNull(_) {
|
||||
int? testReturnNull(void _) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user