equatable_lint 0.1.0 equatable_lint: ^0.1.0 copied to clipboard
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.0
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';