Returns true if this type has a method with the given name.
name
@override bool hasMethod(String name) { return element.hasMethod(name); }