hasMethod function

bool hasMethod(
  1. String filePath,
  2. String methodName, [
  3. String? className
])

Implementation

bool hasMethod(String filePath, String methodName, [String? className]) {
  final methods = extractMethodListFromClass(filePath, className);
  return methods.contains(methodName);
}