invoke

open operator fun invoke(): C?

Shortcut for getOrNull


open operator fun <R> invoke(block: (C) -> R): R?

Execute code on the tracked component.

Gets the component and if the component is not null executes the block with the tracked component as parameter.

Will return the result of block or null if no component is tracked.