Enable strict-inference (#135043)

Avoids that dynamic accidentally sneaks in, see https://dart.dev/tools/analysis#enabling-additional-type-checks
This commit is contained in:
Michael Goderbauer
2023-09-20 12:59:08 -07:00
committed by GitHub
parent 96a4ae9dc5
commit b0a90aee17
27 changed files with 63 additions and 55 deletions

View File

@@ -136,7 +136,7 @@ class GridBuilder extends StatefulWidget {
});
final bool isSelectionMode;
final Function(bool)? onSelectionChange;
final ValueChanged<bool>? onSelectionChange;
final List<bool> selectedList;
@override
@@ -189,7 +189,7 @@ class ListBuilder extends StatefulWidget {
final bool isSelectionMode;
final List<bool> selectedList;
final Function(bool)? onSelectionChange;
final ValueChanged<bool>? onSelectionChange;
@override
State<ListBuilder> createState() => _ListBuilderState();