PreviewLabPreview

fun PreviewLabPreview(id: String, displayName: String = id, filePath: String? = null, startLineNumber: Int? = null, endLineNumber: Int? = null, code: String? = null, kdoc: String? = null, content: @Composable () -> Unit): PreviewLabPreview

Create a CollectedPreview instance.

Parameters

displayName

The value set to displayName of the ComposePreviewLabOption annotation.

filePath

The file where Preview exists.

startLineNumber

The starting line number of Preview (1-based).

endLineNumber

The ending line number of Preview (1-based, inclusive).

code

The source code of Preview.

content

The content of Preview. You can display the content of Preview by calling invoke().