# dart_style

> An opinionated, automatic Dart source code formatter

Source: https://talira.ai/catalog/dart-style-w5rmrtnc
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [developer tools / formatting](https://talira.ai/categories/developer-tools/formatting), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: BSD-3-Clause[^1]
- Pricing: Free[^1]
- Free tier: yes[^1]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^3]

dart_style is the formatter behind `dart format` in the Dart SDK: it replaces the whitespace in Dart code with the layout it judges best, handling indentation, inline whitespace and line wrapping, and makes small changes to non-semantic punctuation such as trailing commas. It is minimally configurable, follows the Dart style guide and never breaks code, so it can run from build and presubmit scripts, and the package also exposes a library API for formatting code from Dart programs.

## Links

- GitHub: https://github.com/dart-lang/dart_style
- Docs: https://pub.dev/documentation/dart_style/latest/

## Problems it solves

- format Dart code automatically in a consistent style
- fail CI when Dart code isn't formatted
- format Dart source from inside a Dart program

## Features

- dart format in the Dart SDK
- intelligent line wrapping
- check mode that sets the exit code for CI
- library API for formatting code

## Trust

Overall: 0.54 out of 1.
Signals: maintenance 0.71, adoption 0.57, momentum 0.23, community 0.70, backing 0.55, extensibility 0.00.

- last commit 9 days ago
- 17 commits in the last 90 days
- latest release v3.1.14 45 days ago
- 700 GitHub stars
- 55 contributors
- backed by Google
- funding: public company (NASDAQ:GOOGL)

## Alternatives

- [rustfmt](https://talira.ai/catalog/rustfmt-r30f7ns1.md): A tool for formatting Rust code according to style guidelines

## Sources

[^1]: https://github.com/dart-lang/dart_style/blob/main/LICENSE (checked 27 Nov 2026)
[^2]: https://github.com/dart-lang/dart_style/blob/main/README.md (checked 27 Nov 2026)
[^3]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
