view_model_lint 1.3.2
view_model_lint: ^1.3.2 copied to clipboard
Analyzer plugin for safe ViewModel ownership, specs, and dependency composition.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate view_model_lintUse it
The package has the following executables:
$ view_model_lint_fix
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add view_model_lintWith Flutter:
$ flutter pub add view_model_lintThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
view_model_lint: ^1.3.2Alternatively, 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:view_model_lint/view_model_lint.dart';