Pattern: Missing use of is!
Issue: -
When checking if an object is not of a specified type, it is preferable to use the is!
operator.
Example of incorrect code:
if (!(foo is Foo)) {
...
}
Example of correct code:
if (foo is! Foo) {
...
}
Pattern: Missing use of is!
Issue: -
When checking if an object is not of a specified type, it is preferable to use the is!
operator.
Example of incorrect code:
if (!(foo is Foo)) {
...
}
Example of correct code:
if (foo is! Foo) {
...
}