getConstructor method

  1. @override
ConstructorElement? getConstructor(
  1. String name
)
override

Returns the constructor with the given name, or null if this element does not have a constructor with the given name.

Implementation

@override
ConstructorElement? getConstructor(String name) {
  return constructors.firstWhereOrNull((ConstructorElement e) => e.name == name);
}