dart_format 1.0.3 copy "dart_format: ^1.0.3" to clipboard
dart_format: ^1.0.3 copied to clipboard

A formatter for Dart. Like dartfmt. But better ;) Because it's configurable.

dart_format #

Build pub package GitHub Issues GitHub Forks GitHub Stars

A formatter for Dart. #

Like dartfmt.
But better ;)
Because it's configurable.

Also available as a plugin for Jetbrains (Android Studio, IntelliJ IDEA, ...)
https://plugins.jetbrains.com/plugin/21003-dartformat

Plugin source: https://github.com/eggnstone/DartFormatJetbrainsPlugin

To run dart_format from the command line: #

  • Put C:\Users\<user>\AppData\Local\Pub\Cache\bin / ~/.pub-cache/bin in your path.
  • Run dart pub global activate --source path .
Usage: dart_format [args]
    <dart file> [<dart file> ...]    Formats the specified dart file(s)
    --config=<config JSON>           Specifies the configuration
    --dry-run, -dr                   Writes output to "<original filename>.formatted.dart"
    --errors-as-json                 Writes errors as JSON to stderr
    --log-to-console                 Logs to console
    --log-to-temp-file               Logs to a temp file ("dart_format_<date>_<time>_<pid>.log" in the system temp directory)
    --pipe                           Formats stdin and writes to stdout
    --web[service]                   Starts in web service mode
7
likes
0
points
3.2k
downloads

Publisher

verified publishereggnstone.dev

Weekly Downloads

A formatter for Dart. Like dartfmt. But better ;) Because it's configurable.

Homepage

License

unknown (license)

Dependencies

analyzer, eggnstone_dart, freezed, freezed_annotation, intl, mime

More

Packages that depend on dart_format