findConstructor method

InterpretedFunction? findConstructor(
  1. String name
)

Implementation

InterpretedFunction? findConstructor(String name) {
  // Constructors are defined directly on the class, not inherited
  // from standard superclasses. Check bridged superclass ONLY if no constructor
  // is found locally.
  if (constructors.containsKey(name)) {
    return constructors[name];
  }

  return null;
}