return true, if the type has a named method name the method name
true
name
bool hasMethod(String name) { return hasProperty<MethodDescriptor>(name); }