prefer_shorthands 0.0.1
prefer_shorthands: ^0.0.1 copied to clipboard
An analyzer plugin that suggests using Dart's dot shorthand syntax.
prefer_shorthands #
⚡ Warning and quick-fix. Enjoy it! ✨
Usage #
To use this analyzer plugin, add it to your analysis_options.yaml file at the root of your Dart or Flutter project:
plugins:
prefer_shorthands: ^0.0.1
After adding the plugin, restart the Dart Analysis Server (in VS Code: press Cmd+Shift+P and select "Dart: Restart Analysis Server", or in IntelliJ/Android Studio: click the "Restart Dart Analysis Server" button in the toolbar).
Learn More #
To learn more about Dart's dot shorthand syntax, check out the official documentation: Dot shorthands - Dart
Feedback #
If you encounter any issues while using this package, please feel free to report them on GitHub Issues.