Use strict-raw-types analysis instead of no-implicit-dynamic (#96296)
diff --git a/analysis_options.yaml b/analysis_options.yaml
index 2d42914..5cc87bc 100644
--- a/analysis_options.yaml
+++ b/analysis_options.yaml
@@ -19,9 +19,10 @@
# Android Studio, and the `flutter analyze` command.
analyzer:
+ language:
+ strict-raw-types: true
strong-mode:
implicit-casts: false
- implicit-dynamic: false
errors:
# treat missing required parameters as a warning (not a hint)
missing_required_param: warning
diff --git a/packages/flutter/lib/src/widgets/navigator.dart b/packages/flutter/lib/src/widgets/navigator.dart
index 65eb308..bcc3b94 100644
--- a/packages/flutter/lib/src/widgets/navigator.dart
+++ b/packages/flutter/lib/src/widgets/navigator.dart
@@ -5166,7 +5166,7 @@
required int restorationScopeId,
}) = _NamedRestorationInformation;
factory _RestorationInformation.anonymous({
- required RestorableRouteBuilder routeBuilder,
+ required RestorableRouteBuilder<Object?> routeBuilder,
required Object? arguments,
required int restorationScopeId,
}) = _AnonymousRestorationInformation;
@@ -5265,7 +5265,7 @@
factory _AnonymousRestorationInformation.fromSerializableData(List<Object?> data) {
assert(data.length > 1);
- final RestorableRouteBuilder routeBuilder = ui.PluginUtilities.getCallbackFromHandle(ui.CallbackHandle.fromRawHandle(data[1]! as int))! as RestorableRouteBuilder;
+ final RestorableRouteBuilder<Object?> routeBuilder = ui.PluginUtilities.getCallbackFromHandle(ui.CallbackHandle.fromRawHandle(data[1]! as int))! as RestorableRouteBuilder;
return _AnonymousRestorationInformation(
restorationScopeId: data[0]! as int,
routeBuilder: routeBuilder,
@@ -5292,7 +5292,7 @@
@override
final int restorationScopeId;
- final RestorableRouteBuilder routeBuilder;
+ final RestorableRouteBuilder<Object?> routeBuilder;
final Object? arguments;
@override