I have a file in my project that breaks many lint rules, and I cannot make major changes to it. How can I disable all lints within this file?
As of Dart 2.15, an inline ignore directive can be used to disable all lints in a file.
// ignore_for_file: type=lint
Case sensitivity and whitespace is ignored; the following styles also work, for example:
type = lint
Answered By – hacker1024
Answer Checked By – Senaida (FlutterFixes Volunteer)