toInlineProperties method

String toInlineProperties()

Implementation

String toInlineProperties() {
  var color = _color?.text;
  var text = _text?.text;

  return [
    'type: ${type?.name}',
    if (inline != null) 'inline: $inline',
    if (isNotEmptyString(color, trim: true)) 'color: $color',
    if (zoom != null) 'zoom: $zoom',
    if (textZoom != null) 'textZoom: $textZoom',
    if (isNotEmptyString(text, trim: true)) 'text: $text',
  ].join('; ');
}