withDrawAnnotation
Source set: Common
public inline fun <R : Any> Builder.withDrawAnnotation(
drawAnnotation: DrawAnnotation,
block: Builder.() -> R,
): R
Associates drawAnnotation with the text appended while running block.
Parameters
| drawAnnotation | annotation that draws behind or over the appended text range |
| block | function to run while drawAnnotation is active |
Return
result of block