How to disable a linting rule inline in flutter
General answer
To ignore a single line, you can add a comment above the line:
// ignore: non_constant_identifier_namesfinal NEW = 'NEW';
To ignore for the whole file, you can add a comment at the top of the file:
// ignore_for_file: non_constant_identifier_names
To ignore for the whole project, you can set the rule to false in your analysis_options.yaml file:
include: package:lints/recommended.yamllinter: rules: non_constant_identifier_names: false