Skip to main content

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

CLI and analyzer plugin that finds Color.red style references a context type already supplies and rewrites them to the .red dot shorthand form.

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

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

dependencies:
  dot_shorthand: ^1.0.0

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

Publisher

unverified uploader

Weekly Downloads

CLI and analyzer plugin that finds Color.red style references a context type already supplies and rewrites them to the .red dot shorthand form.

Repository (GitHub)
View/report issues

Topics

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

License

unknown (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin, args, glob, path

More

Packages that depend on dot_shorthand