hasMethod method

bool hasMethod(
  1. String name
)

return true, if the type has a named method name the method name

Implementation

bool hasMethod(String name) {
  return hasProperty<MethodDescriptor>(name);
}