Customizing static analysis | Dart
dart.dev › guides › languageThe implicit-casts flag can catch those non-dynamic downcasts, even if you’re using a more recent Dart SDK. implicit-dynamic: <bool> A value of false ensures that the type inference engine never chooses the dynamic type when it can’t determine a static type. Enabling and disabling linter rules. The analyzer package also provides a code linter.
Customizing static analysis | Dart
https://dart.dev/guides/language/analysis-optionsThe implicit-casts flag can catch those non- dynamic downcasts, even if you’re using a more recent Dart SDK. implicit-dynamic: <bool> A value of false ensures that the type inference engine never chooses the dynamic type when it can’t determine a static type. Enabling and disabling linter rules The analyzer package also provides a code linter.