drtimport 2.0.0 icon indicating copy to clipboard operation
drtimport: ^2.0.0 copied to clipboard

An cli app to help you refactor you dart libraries because VSCode won't.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate drtimport

Use it

The package has the following executables:

$ drtimport

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add drtimport

With Flutter:

 $ flutter pub add drtimport

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  drtimport: ^2.0.0

Alternatively, 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:drtimport/dart_import_app.dart';
import 'package:drtimport/library.dart';
import 'package:drtimport/line.dart';
import 'package:drtimport/make_relative_command.dart';
import 'package:drtimport/move_command.dart';
import 'package:drtimport/move_result.dart';
import 'package:drtimport/patch_command.dart';
import 'package:drtimport/stack_list.dart';
import 'package:drtimport/util/enum_helper.dart';
import 'package:drtimport/util/log.dart';
import 'package:drtimport/util/stack_list.dart';
import 'package:drtimport/util/stack_trace_impl.dart';
import 'package:drtimport/util/tmp1/fred2.dart';
import 'package:drtimport/util/tmp1/fred3.dart';
import 'package:drtimport/watch_command.dart';
import 'package:drtimport/yaml.dart';
2
likes
70
pub points
0%
popularity

Publisher

verified publisher iconnoojee.dev

An cli app to help you refactor you dart libraries because VSCode won't.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Icon for licenses.unknown (LICENSE)

Dependencies

args, dcli, file_utils, intl, logger, path, pedantic, recase, yaml

More

Packages that depend on drtimport