toSpanStyle

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

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