equatable_lint 0.1.4 copy "equatable_lint: ^0.1.4" to clipboard
equatable_lint: ^0.1.4 copied to clipboard

outdated

This is a set of rules to make classes using Equatable more maintainable. We make sure here that every fields in an Equatable class is linked to the Equatable props getter.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add equatable_lint

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

dependencies:
  equatable_lint: ^0.1.4

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

Import it

Now in your Dart code, you can use:

import 'package:equatable_lint/const.dart';
import 'package:equatable_lint/helpers/convert_fields_names_to_single_string.dart';
import 'package:equatable_lint/helpers/get_ast_node_from_element.dart';
import 'package:equatable_lint/helpers/get_custom_analysis_error_fixes.dart';
import 'package:equatable_lint/helpers/get_equatable_props_expression_infos.dart';
import 'package:equatable_lint/helpers/get_has_override_equatable_props_in_super_class.dart';
import 'package:equatable_lint/rules/get_add_field_to_equatable_props_lint.dart';
import 'package:equatable_lint/rules/get_create_equatable_props_lint.dart';
import 'package:equatable_lint/rules/get_props_need_to_call_super_lint.dart';
7
likes
0
points
1.31k
downloads

Publisher

verified publisherbam.tech

Weekly Downloads

This is a set of rules to make classes using Equatable more maintainable. We make sure here that every fields in an Equatable class is linked to the Equatable props getter.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, analyzer_plugin, collection, custom_lint_builder, equatable, source_gen

More

Packages that depend on equatable_lint