stringifyDescriptor top-level property

Map<String, dynamic Function(dynamic comment, dynamic format)> stringifyDescriptor
final

Implementation

final stringifyDescriptor = {
  "comment": (comment, format) {
    return '; ${comment['value']}';
  },
  "formatSpec": (formatSpec, format) {
    return formatSpec['key'] + ': ' + formatSpec['value'].join(', ');
  },
  "properties": (properties, format) {
    return properties['key'] +
        ': ' +
        pickValues(properties['value'], format).join(',');
  },
  "raw": (raw, format) {
    return raw['key'] + ': ' + raw['value'];
  }
};