essential_lints 0.1.7
essential_lints: ^0.1.7 copied to clipboard
New lint rules for Dart/Flutter projects and related fixes.
/// Example of variable shadowing.
///
/// To clone this example, run:
///
/// ```sh
/// dart pub global activate essential_lints
/// dart pub global run essential_lints:get_example
/// ```
void foo(int number) {
var number = 4;
print(number);
{
var number = 5;
print(number);
}
if (number case var number) {
print(number);
}
}