avoid-unnecessary-type-casts
added in: 4.7.0
warning
Warns about of unnecessary use of casting operators.
Example
class Example {
final myList = <int>[1, 2, 3];
void main() {
final result = myList as List<int>; // LINT
}
}
Warns about of unnecessary use of casting operators.
class Example {
final myList = <int>[1, 2, 3];
void main() {
final result = myList as List<int>; // LINT
}
}