class_match_file_name 0.0.1 copy "class_match_file_name: ^0.0.1" to clipboard
class_match_file_name: ^0.0.1 copied to clipboard

Linter rule to ensure that the class name matches the file name.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add class_match_file_name

With Flutter:

 $ flutter pub add class_match_file_name

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  class_match_file_name: ^0.0.1

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:class_match_file_name/lint/class_match_file_name.dart';
import 'package:class_match_file_name/lint/lint.dart';
2
likes
0
points
82
downloads

Publisher

unverified uploader

Weekly Downloads

Linter rule to ensure that the class name matches the file name.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, custom_lint_builder, flutter

More

Packages that depend on class_match_file_name