toVCard method

List<String> toVCard()

Implementation

List<String> toVCard() {
  // IMPP (V3): https://tools.ietf.org/html/rfc4770
  // IMPP (V4): https://tools.ietf.org/html/rfc6350#section-6.4.3
  final protocol = label == SocialMediaLabel.custom
      ? customLabel
      : _socialMediaLabelToString[label]!;
  return ['IMPP:${vCardEncode(protocol)}:${vCardEncode(userName)}'];
}