hasConstructor method

  1. @override
bool hasConstructor(
  1. String name
)
override

Returns true if this element has a constructor with the given name.

Implementation

@override
bool hasConstructor(String name) {
  return constructors.any((ConstructorElement e) => e.name == name);
}