Skip to main content

dot_shorthand 1.1.2 copy "dot_shorthand: ^1.1.2" to clipboard
dot_shorthand: ^1.1.2 copied to clipboard

Migrate Dart code to dot shorthands (Color.red -> .red). CLI batch rewrite plus an analyzer plugin with a quick fix.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate dot_shorthand

Use it

The package has the following executables:

$ dot_shorthand

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add dot_shorthand

With Flutter:

 $ flutter pub add dot_shorthand

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

dependencies:
  dot_shorthand: ^1.1.2

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:dot_shorthand/dot_shorthand.dart';
1
likes
150
points
3.43k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Migrate Dart code to dot shorthands (Color.red -> .red). CLI batch rewrite plus an analyzer plugin with a quick fix.

Repository (GitHub)
View/report issues

Topics

#lint #analyzer-plugin #codemod #dot-shorthands #flutter

License

MIT (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin, args, glob, path

More

Packages that depend on dot_shorthand