visitConstructorElement method

  1. @override
dynamic visitConstructorElement(
  1. ConstructorElement element
)
override

Implementation

@override
dynamic visitConstructorElement(ConstructorElement element) {
  final elementReturnType = element.type.returnType.toString();

  // DartType ends with '*', which needs to be eliminated
  // for the generated code to be accurate.
  className = elementReturnType.replaceFirst('*', '');
}