invoke

abstract suspend operator fun <T> invoke(contents: ModalManager.ModalContext<T>.() -> ModalManager.ModalType): T(source)

Creates a modal that blocks until it has input and generates a result T.

Return

result T from completed

Parameters

contents

to display within the modal, and a way to indicate when a result is ready