hasConstructor method

  1. @protected
bool hasConstructor(
  1. DartType type
)
inherited

If this class possesses a factory such as fromRest

Implementation

@protected
bool hasConstructor(DartType type) {
  final classElement = type.element as ClassElement;
  return classElement.getNamedConstructor(constructorName) != null;
}