isValid method

bool isValid (String name)

Check if name is a method name available

Implementation

bool isValid(String name) {
  final bool hasMethod = registry.containsKey(name);
  this.name = hasMethod ? name : null;
  return hasMethod;
}