toShortString method

String toShortString()

Implementation

String toShortString() {
  final values = [
    if (isBold) 'bold',
    if (isDim) 'dim',
    if (isItalic) 'italic',
    if (isUnderline) 'underline',
    if (isDoublyUnderline) 'doublyUnderline',
    if (isBlink) 'blink',
    if (isBlinkRapid) 'blinkRapid',
    if (isInverse) 'inverse',
    if (isInvisible) 'invisible',
    if (isStrikethrough) 'strikethrough',
    if (isFrame) 'frame',
    if (isEncircle) 'encircle',
    if (isOverline) 'overline',
    if (isSuperscript) 'superscript',
    if (isSubscript) 'subscript',
    if (foregroundColor != null) 'foreground: $foregroundColor',
    if (backgroundColor != null) 'background: $backgroundColor',
    if (underlineColorValue != null) 'underlineColor: $underlineColorValue',
  ];

  return values.join(', ');
}