prefer_shorthands
An analyzer plugin that suggests using Dart's dot shorthand syntax.
0.4.7
3.2K downloads/mo
#4551 most downloaded on pub.dev
huanghui1998hhh/prefer_shorthands
What this package is like to depend on
Last release 8 months ago
08 Dec 2025
Ships on a steady schedule
a new release about every 2 weeks
Nearly every release is documented
notes for 18 of 18 stable releases
Nothing withdrawn
no release was ever pulled
9 months old
18 releases · first in 2025
18 releases in the last 12 months
see the full history below
Release timeline
18 releases · Nov 2025 to Dec 2025
2026
Releases
latest 18-
0.4.708 Dec 2025Release notes
Open source →- Fix
factory constructorswith body return displayed warning that should not appeared. #21.
- Fix
-
0.4.627 Nov 2025 -
0.4.526 Nov 2025 -
0.4.426 Nov 2025 -
0.4.325 Nov 2025 -
0.4.218 Nov 2025Release notes
Open source →- Fix
Size(100, 100) > Size.zerobe wrong marning, the opearator>required righthand type isSize's Base Class, so here can't use shorthand. A similar situation is operator??. - Fix
bugDog(Animal.dog());,.dogisAnimal's constructor, but function need aDog, so here can't use shorthand.
- Fix
-
0.4.118 Nov 2025 -
0.4.018 Nov 2025 -
0.3.317 Nov 2025 -
0.3.216 Nov 2025Release notes
Open source →- Fix quick-fix case:
class Animal { static Dog dog => ...; } class Dog extends Animal{} void main() { final animal = Animal.dog; // wrong quick-fix to `final Dog animal = .dog;` }- The assignment behavior will now be correctly detected.
-
0.3.115 Nov 2025 -
0.3.014 Nov 2025 -
0.3.0+114 Nov 2025 -
0.2.014 Nov 2025Release notes
Open source →- Fix case:
class Animal {} class Dog extends Animal{ static Dog husky() => ...; } void foo(Animal animal){} void main() { foo(Dog.husky()); // should not warning } -
0.1.014 Nov 2025 -
0.1.0+114 Nov 2025 -
0.0.114 Nov 2025 -
0.0.1+114 Nov 2025