Add the following lines to analysis_options.yaml:
analysis_options.yaml
linter: rules: prefer_const_constructors: true