sort_pubspec_dependencies 0.0.1
sort_pubspec_dependencies: ^0.0.1 copied to clipboard
Dev dart package for sorting dependencies and dev_dependencies in pubspec.yaml
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate sort_pubspec_dependenciesUse it
The package has the following executables:
$ sort_pubspec_dependencies
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add sort_pubspec_dependenciesWith Flutter:
$ flutter pub add sort_pubspec_dependenciesThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
sort_pubspec_dependencies: ^0.0.1Alternatively, 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:sort_pubspec_dependencies/config_mapper.dart';
import 'package:sort_pubspec_dependencies/process_runner.dart';
import 'package:sort_pubspec_dependencies/pubspec_reader/dependency.dart';
import 'package:sort_pubspec_dependencies/pubspec_reader/pubspec_reader.dart';