withPreview

open fun withPreview(preview: (Canvas) -> Unit): Action
open fun withPreview(preview: Consumer<Canvas>): Action

Returns a copy of this with dashboard preview preview.