We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I would like to request a lint rule to avoid bang operator usage,
For ex:
String? a; String b = a!; // Should not be allowed Developer should be forced to use, String b = a ?? "default";
They can also create a scoped extension like kotlin for complex cases like,
extension ObjectExt<T> on T { R let<R>(R Function(T item) op) => op(this); } String b = a?.let((item) => "Hello $a") ?? "Hello Default";
Thank you
The text was updated successfully, but these errors were encountered:
Right! We've discussed something similar before and are tracking the idea in #3008.
Feel free to add any more context there.
Thanks!
Sorry, something went wrong.
No branches or pull requests
Hello,
I would like to request a lint rule to avoid bang operator usage,
For ex:
They can also create a scoped extension like kotlin for complex cases like,
Thank you
The text was updated successfully, but these errors were encountered: