dartfix 0.1.8 dartfix: ^0.1.8 copied to clipboard
A tool for migrating Dart source to newer versions of the Dart SDK and fixing common issues.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate dartfix
Use it
The package has the following executables:
$ dartfix
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dartfix
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
dartfix: ^0.1.8
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:dartfix/handler/analysis_complete_handler.dart';
import 'package:dartfix/listener/bad_message_listener.dart';
import 'package:dartfix/listener/recording_listener.dart';
import 'package:dartfix/listener/timed_listener.dart';