getMethod method Null safety

MethodElement? getMethod(
  1. String name
)

Return the element representing the method with the given name that is declared in this extension, or null if this extension does not declare a method with the given name.

Implementation

MethodElement? getMethod(String name);