diff --git a/analysis_options.yaml b/analysis_options.yaml index 455dedfa4..847745812 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,9 +1,9 @@ include: package:flutter_lints/flutter.yaml analyzer: - strong-mode: - implicit-casts: false - implicit-dynamic: false + language: + strict-casts: true + strict-inference: true linter: rules: diff --git a/web/samples_index/analysis_options.yaml b/web/samples_index/analysis_options.yaml index d28c30e05..d7eb49106 100644 --- a/web/samples_index/analysis_options.yaml +++ b/web/samples_index/analysis_options.yaml @@ -3,9 +3,9 @@ include: package:flutter_lints/flutter.yaml analyzer: exclude: - lib/src/data.g.dart - strong-mode: - implicit-casts: false - implicit-dynamic: false + language: + strict-casts: true + strict-inference: true linter: rules: