visitNamedType method
Implementation
@override
void visitNamedType(NamedType node) {
final type = node.type;
if (type is InterfaceType) {
final element = node.name.staticElement;
if (element is TypeParameterizedElement &&
element.typeParameters.isNotEmpty &&
node.typeArguments == null &&
node.parent is! IsExpression &&
!element.hasOptionalTypeArgs) {
reportAstNode(node, message: _message, correction: _correction);
}
}
}