getMethod abstract method
Return the element representing the method with the given name
that is
declared in this class, or null
if this class does not declare a method
with the given name.
Implementation
@Deprecated('Use getMethod2() instead')
MethodElement? getMethod(String name);