visitFunctionDeclaration method Null safety

  1. @override
R? visitFunctionDeclaration(
  1. FunctionDeclaration node
)
override

Implementation

@override
R? visitFunctionDeclaration(FunctionDeclaration node) {
  if (node.parent is FunctionDeclarationStatement) {
    return visitNode(node);
  }
  return visitNamedCompilationUnitMember(node);
}