blackfoot_flutter_lint 2.0.0 copy "blackfoot_flutter_lint: ^2.0.0" to clipboard
blackfoot_flutter_lint: ^2.0.0 copied to clipboard

Recommended lints for Blackfoot's Flutter apps to encourage good coding practices.

example/lib/main.dart

// The code in this file (and all other dart files in the package) is
// analyzed using the rules activated in `analysis_options.yaml`.

// The following syntax deactivates a lint for the entire file:
// ignore_for_file: prefer_final_locals

// Normally, the declaration of the parameter  `partOne` in this function would
// trigger the `prefer_final_locals` lint, but it has been
// deactivated for the file with the `ignore_for_file` comment above.

void main() {
  String partOne = 'Hello';
  // The following syntax deactivates a lint on a per-line bases:
  const partTwo = 'World'; // ignore: always_specify_types

  // You can also declare it above the line
  // ignore: avoid_print
  print('$partOne $partTwo');
}
7
likes
150
points
28
downloads

Publisher

verified publisherblackfoot.io

Weekly Downloads

Recommended lints for Blackfoot's Flutter apps to encourage good coding practices.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter_lints

More

Packages that depend on blackfoot_flutter_lint