oneLineDoc property

String oneLineDoc
override

Implementation

@override
String get oneLineDoc {
  if (_oneLineDoc == null) {
    if (!hasAccessorsWithDocs) {
      _oneLineDoc = super.oneLineDoc;
    } else {
      var buffer = StringBuffer();
      if (hasPublicGetter && getter.oneLineDoc.isNotEmpty) {
        buffer.write('${getter.oneLineDoc}');
      }
      if (hasPublicSetter && setter.oneLineDoc.isNotEmpty) {
        buffer.write('${getterSetterBothAvailable ? "" : setter.oneLineDoc}');
      }
      _oneLineDoc = buffer.toString();
    }
  }
  return _oneLineDoc;
}