avoid_non_null_assertion_operator 1.1.0
avoid_non_null_assertion_operator: ^1.1.0 copied to clipboard
A custom lint package to forbid the non-null assertion operator (!).
example/main.dart
class A {
String? nullable;
}
void main() {
String? nullable = "test";
String nonNullable = nullable!; // Should trigger the lint
A a = A();
String nonNullable2 = a.nullable!; // Should trigger the lint
}