CollectedPreview

data class CollectedPreview(val id: String, val displayName: String = id, val filePath: String? = null, val startLineNumber: Int? = null, val code: String? = null, val content: @Composable () -> Unit) : PreviewLabPreview

Constructors

Link copied to clipboard
constructor(id: String, displayName: String = id, filePath: String? = null, startLineNumber: Int? = null, code: String? = null, content: @Composable () -> Unit)

Properties

Link copied to clipboard
open override val code: String?

The source code of Preview.

Link copied to clipboard
open override val content: @Composable () -> Unit

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

Link copied to clipboard
open override val displayName: String

The value set to displayName of the ComposePreviewLabOption annotation.

Link copied to clipboard
open override val filePath: String?

The file where Preview exists.

Link copied to clipboard
open override val id: String
Link copied to clipboard
open override val startLineNumber: Int?

The starting line number of Preview.