toSpanStyle

fun toSpanStyle(annotation: Annotation, colors: SparkColors, typography: SparkTypography): SpanStyle?(source)

Returns the SpanStyle for the given annotation, or null if the key/value is unsupported.