isValid method

bool isValid (
  1. String name
)
inherited

Check if name is a method name available

Implementation

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