map Component
fun Component.mapComponent(contentMapper: UnaryOperator<ComponentContents> = UnaryOperator.identity(), styleMapper: UnaryOperator<Style> = UnaryOperator.identity()): Component
Returns a new component with contentMapper applied to the contents and styleMapper applied to the style of every part, or the receiver itself if nothing changed.