PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 18
  1. 0.4.7 08 Dec 2025
    Release notes
    • Fix factory constructors with body return displayed warning that should not appeared. #21.
    Open source →
  2. 0.4.6 27 Nov 2025
    Release notes
    • Adapt return Future #19.
    Open source →
  3. 0.4.5 26 Nov 2025
    Release notes
    • Allow analyzer9.0.
    Open source →
  4. 0.4.4 26 Nov 2025
    Release notes
    • Remove a output statements that may cause the analyze server to crash.
    • Adapt getter #16.
    • Adapt Record #15.
    • Enhance return type check for Iterable/Map/Record.
    Open source →
  5. 0.4.3 25 Nov 2025
    Release notes
    • Adapt List and Set.
    • Adapt Map.
    • Adapt operator !=.
    • Add case DefaultFormalParameter (#8).
    • Fix case when assignment to dynamic, like <String, dynamic>{}..**['a'] = Foo.a** (#11).
    • Add case returnStatement and returnExpression (#9).
    • Fix case subtype_prefix_in_supertype_context (see test file).
    Open source →
  6. 0.4.2 18 Nov 2025
    Release notes
    • Fix Size(100, 100) > Size.zero be wrong marning, the opearator > required righthand type is Size's Base Class, so here can't use shorthand. A similar situation is operator ??.
    • Fix bugDog(Animal.dog());, .dog is Animal's constructor, but function need a Dog, so here can't use shorthand.
    Open source →
  7. 0.4.1 18 Nov 2025
    Release notes
    Open source →
  8. 0.4.0 18 Nov 2025
    Release notes
    • Add more case.
    • Optimized code.
    • Improved testing.
    Open source →
  9. 0.3.3 17 Nov 2025
    Release notes
    • Chore
    Open source →
  10. 0.3.2 16 Nov 2025
    Release notes
    • 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.
    Open source →
  11. 0.3.1 15 Nov 2025
    Release notes
    • Support settings convert_implicit_declaration, defaults to false.
    Open source →
  12. 0.3.0 14 Nov 2025
    Release notes
    • Fix case borderRadius: BorderRadius.all(.circular(16)),
    Open source →
  13. 0.3.0+1 14 Nov 2025
    Release notes
    • Fix.
    Open source →
  14. 0.2.0 14 Nov 2025
    Release notes
    • Fix case:
    class Animal {}
    class Dog extends Animal{
        static Dog husky() => ...;
    }
    
    void foo(Animal animal){}
    
    void main() {
        foo(Dog.husky()); // should not warning
    }
    
    Open source →
  15. 0.1.0 14 Nov 2025
    Release notes
    • Fix analyze argument list.
    Open source →
  16. 0.1.0+1 14 Nov 2025
    Release notes
    • Update README.md.
    Open source →
  17. 0.0.1 14 Nov 2025
    Release notes
    • Warning when not use dot shorthands!
    Open source →
  18. 0.0.1+1 14 Nov 2025
    Release notes
    • Fix.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive