EmptySpan constructor

EmptySpan()

A span that renders nothing.

Similar to Flutter's SizedBox.shrink(), use this when a span conditionally produces no output:

LogSpan build() {
  if (data == null) return EmptySpan();
  return PlainText(data.toString());
}

Implementation

EmptySpan();