hasMethod method

bool hasMethod (dynamic obj, String name)
  • Checks if object has a method with specified name..
      • obj an object to introspect.
      • name a name of the method to check.
    • Returns true if the object has the method and false if it doesn't.