prefer_shorthands 0.4.7
prefer_shorthands: ^0.4.7 copied to clipboard
An analyzer plugin that suggests using Dart's dot shorthand syntax.
0.4.5 #
- Allow
analyzer9.0.
0.4.4 #
0.4.3 #
0.4.2 #
- 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.
0.4.0 #
- Add more case.
- Optimized code.
- Improved testing.
0.3.3 #
- Chore
0.3.2 #
- 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.1 #
- Support settings
convert_implicit_declaration, defaults tofalse.
0.3.0+1 #
- Fix.
0.3.0 #
- Fix case
borderRadius: BorderRadius.all(.circular(16)),
0.2.0 #
- 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.0+1 #
- Update
README.md.
0.1.0 #
- Fix analyze argument list.
0.0.1+1 #
- Fix.
0.0.1 #
- Warning when not use dot shorthands!