toSpanStyle

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

Given a string representing an annotation key and a string representing an annotation value, returns the corresponding SpanStyle.