toString method

  1. @override
String toString()
override

Return the MeCard formatted content for this object

Implementation

@override
String toString() {
  final result = StringBuffer();
  result.write('${_str(type)}:');

  for (final field in fields) {
    result.write('${_str(field.key)}:${_str(field.val)};');
  }

  result.write(';');
  return result.toString();
}