class Foo {}
typedef Bar = Foo;
void main() {
var b = Bar();
}
No problems with the above code.
But if we add a type argument:
class Foo<T> {}
typedef Bar = Foo<Object?>;
void main() {
var b = Bar();
}
According to the linter rule, b's type is no longer obvious.
No problems with the above code.
But if we add a type argument:
According to the linter rule,
b's type is no longer obvious.