isValid method

bool isValid ()

Search the method in the instances, return true if found

Implementation

bool isValid() {
  final inner = innerCache.sublist(0)
    ..add(context.defaultFunc ?? defaultCache)
    ..addAll(customCache);
  found = null;

  for (var i = 0; i < inner.length; i++) {
    if (inner[i].isValid(name)) {
      found = inner[i];
      return true;
    }
  }

  return false;

//2.4.0
//functionCaller.prototype.isValid = function() {
//    return Boolean(this.func);
//};
}