Factory

class Factory(initialWidth: Dp? = null, initialHeight: Dp? = null) : ModifierFieldValueFactory<SizeModifierFieldValue>

Factory for creating SizeModifierFieldValue instances with configurable initial values.

Parameters

initialWidth

Initial width value for the component

initialHeight

Initial height value for the component

Constructors

Link copied to clipboard
constructor(initialWidth: Dp? = null, initialHeight: Dp? = null)
constructor(initialAll: Dp? = null)

Properties

Link copied to clipboard
open override val canCreate: Boolean

Whether this factory can currently create a new modifier field value. Typically based on the current configuration state.

Link copied to clipboard
var height: Dp?
Link copied to clipboard
open override val title: String

The display title for this modifier type in the UI.

Link copied to clipboard
var width: Dp?

Functions

Link copied to clipboard
open override fun Content(createButton: @Composable () -> Unit)

Renders the configuration UI content for this modifier.

Link copied to clipboard
open override fun create(): Result<SizeModifierFieldValue>

Creates a new modifier field value instance based on current configuration.