null_safety_percentage 1.0.0+2
null_safety_percentage: ^1.0.0+2 copied to clipboard
Command-line tool to provide null-safety percentage info of a project. Track your migration progress on mixed-version programs that execute with unsound null safety.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate null_safety_percentage
Use it
The package has the following executables:
$ null_safety_percentage
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add null_safety_percentage
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
null_safety_percentage: ^1.0.0+2
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:null_safety_percentage/null_safety_percentage.dart';