getDescription function

String? getDescription(
  1. Element element,
  2. String? docComment
)

Implementation

String? getDescription(
  Element element,
  String? docComment,
) {
  final description = getDocumentation(element)?.description;
  if (description != null) {
    return _escapeDescription(description);
  }

  return docComment == null ? null : _cleanDocComment(docComment);
}